dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
670b92b
)
Followup r81812: per CR, this could be 0
author
Chad Horohoe
<demon@users.mediawiki.org>
Wed, 9 Feb 2011 14:59:44 +0000
(14:59 +0000)
committer
Chad Horohoe
<demon@users.mediawiki.org>
Wed, 9 Feb 2011 14:59:44 +0000
(14:59 +0000)
includes/User.php
patch
|
blob
|
history
diff --git
a/includes/User.php
b/includes/User.php
index
0f9d973
..
46d6f42
100644
(file)
--- a/
includes/User.php
+++ b/
includes/User.php
@@
-586,7
+586,7
@@
class User {
}
// Preg yells if you try to give it an empty string
- if( $wgInvalidUsernameCharacters ) {
+ if( $wgInvalidUsernameCharacters
!== ''
) {
if( preg_match( '/[' . preg_quote( $wgInvalidUsernameCharacters, '/' ) . ']/', $name ) ) {
wfDebugLog( 'username', __METHOD__ .
": '$name' invalid due to wgInvalidUsernameCharacters" );