summaryrefslogtreecommitdiff
path: root/modules/profile
diff options
context:
space:
mode:
Diffstat (limited to 'modules/profile')
-rw-r--r--modules/profile/profile.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/profile/profile.module b/modules/profile/profile.module
index 36b653cea..c5ade96b1 100644
--- a/modules/profile/profile.module
+++ b/modules/profile/profile.module
@@ -276,7 +276,7 @@ function profile_view_field($user, $field) {
);
return strtr($format, $replace);
case 'list':
- $values = split("[,\n\r]", $value);
+ $values = preg_split("/[,\n\r]/", $value);
$fields = array();
foreach ($values as $value) {
if ($value = trim($value)) {
@@ -387,7 +387,7 @@ function profile_form_profile($edit, $user, $category, $register = FALSE) {
break;
case 'selection':
$options = $field->required ? array() : array('--');
- $lines = split("[,\n\r]", $field->options);
+ $lines = preg_split("/[,\n\r]/", $field->options);
foreach ($lines as $line) {
if ($line = trim($line)) {
$options[$line] = $line;