MDL-20821 reverting untested ereg cleanup, not acceptable for stable, sorry
This commit is contained in:
@@ -143,7 +143,7 @@ class user_editadvanced_form extends moodleform {
|
||||
$err['username'] = get_string('usernamelowercase');
|
||||
} else {
|
||||
if (empty($CFG->extendedusernamechars)) {
|
||||
$string = preg_replace("/[^(-\.[:alnum:])]/i", '', $usernew->username);
|
||||
$string = eregi_replace("[^(-\.[:alnum:])]", '', $usernew->username);
|
||||
if ($usernew->username !== $string) {
|
||||
$err['username'] = get_string('alphanumerical');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user