MDL-20821 reverting untested ereg cleanup, not acceptable for stable, sorry

This commit is contained in:
Petr Skoda
2009-11-19 09:56:52 +00:00
parent 199be8868e
commit 59fa78efa4
7 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -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');
}