Back out the bit of r57558 for allowing lowercased usernames. That needs more testing.
authorChad Horohoe <demon@users.mediawiki.org>
Fri, 9 Oct 2009 13:01:16 +0000 (13:01 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Fri, 9 Oct 2009 13:01:16 +0000 (13:01 +0000)
includes/User.php

index a5a5423..ffc0963 100644 (file)
@@ -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;