MDL-6613 Apostrophe in locked field prevents user updating profile - patch by Iñaki Arenaza
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user