(bug 26854) Invalid user names go unchecked. Applied most of the patch submitted...
[lhc/web/wiklou.git] / includes / specials / SpecialBlockme.php
index 95f92f4..ebfe07e 100644 (file)
@@ -45,6 +45,7 @@ class SpecialBlockme extends UnlistedSpecialPage {
                }
 
                $user = User::newFromName( wfMsgForContent( 'proxyblocker' ) );
+               # FIXME: newFromName could return false on a badly configured wiki.
                if ( !$user->isLoggedIn() ) {
                        $user->addToDatabase();
                }