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

This commit is contained in:
skodak
2006-12-10 17:41:12 +00:00
parent 8e2958d1a1
commit a04aa7c7df
+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);
}
}
}