(bug 26854) Invalid user names go unchecked. Applied most of the patch submitted...
[lhc/web/wiklou.git] / maintenance / moveBatch.php
index 9b9f910..6ecc775 100644 (file)
@@ -67,6 +67,9 @@ class MoveBatch extends Maintenance {
                        $this->error( "Unable to read file, exiting", true );
                }
                $wgUser = User::newFromName( $user );
+               if ( !$wgUser ) {
+                       $this->error( "Invalid username", true );
+               }
 
                # Setup complete, now start
                $dbw = wfGetDB( DB_MASTER );