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
revert r102636
[lhc/web/wiklou.git]
/
maintenance
/
protect.php
diff --git
a/maintenance/protect.php
b/maintenance/protect.php
index
aab84d6
..
c304396
100644
(file)
--- a/
maintenance/protect.php
+++ b/
maintenance/protect.php
@@
-47,6
+47,10
@@
class Protect extends Maintenance {
}
$wgUser = User::newFromName( $userName );
+ if ( !$wgUser ) {
+ $this->error( "Invalid username", true );
+ }
+
$restrictions = array( 'edit' => $protection, 'move' => $protection );
$t = Title::newFromText( $this->getArg() );