From: Chad Horohoe Date: Fri, 9 Oct 2009 13:01:16 +0000 (+0000) Subject: Back out the bit of r57558 for allowing lowercased usernames. That needs more testing. X-Git-Tag: 1.31.0-rc.0~39333 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=90cecb1e3ca730eb8e3985ea2d58aaa24f3ca216;p=lhc%2Fweb%2Fwiklou.git Back out the bit of r57558 for allowing lowercased usernames. That needs more testing. --- diff --git a/includes/User.php b/includes/User.php index a5a5423cab..ffc0963700 100644 --- a/includes/User.php +++ b/includes/User.php @@ -521,7 +521,7 @@ class User { || User::isIP( $name ) || strpos( $name, '/' ) !== false || strlen( $name ) > $wgMaxNameChars - || $name != Title::capitalize( $name, NS_USER ) ) { + || $name != $wgContLang->ucfirst( $name ) ) { wfDebugLog( 'username', __METHOD__ . ": '$name' invalid due to empty, IP, slash, length, or lowercase" ); return false;