Follow-up to r56684 - stop people registering invalid usernames.
[lhc/web/wiklou.git] / includes / Login.php
index c30858c..6d199d5 100644 (file)
@@ -301,7 +301,7 @@ class Login {
                global $wgAuth, $wgUser;
 
                $fields = array(
-                       'name' => $this->mName,
+                       'name' => User::getCanonicalName( $this->mName ),
                        'password' => $byEmail ? null : User::crypt( $this->mPassword ),
                        'email' => $this->mEmail,
                        'options' => array(