MDL-6613 Apostrophe in locked field prevents user updating profile - patch by Iñaki Arenaza

This commit is contained in:
skodak
2006-12-10 17:40:24 +00:00
parent e59a895b90
commit 9c1fbd3b81
+1 -1
View File
@@ -166,7 +166,7 @@
if ( $authconfig->{$configvariable} === 'locked'
|| ($authconfig->{$configvariable} === 'unlockedifempty' && !empty($user->$field)) ) {
if (!empty( $user->$field)) {
$usernew->$field = $user->$field;
$usernew->$field = addslashes($user->$field);
}
}
}