dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
(bug 26854) Invalid user names go unchecked. Applied most of the patch submitted...
[lhc/web/wiklou.git]
/
maintenance
/
moveBatch.php
diff --git
a/maintenance/moveBatch.php
b/maintenance/moveBatch.php
index
9b9f910
..
6ecc775
100644
(file)
--- a/
maintenance/moveBatch.php
+++ b/
maintenance/moveBatch.php
@@
-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 );