Index: trunk/phase3/includes/User.php |
— | — | @@ -586,7 +586,7 @@ |
587 | 587 | } |
588 | 588 | |
589 | 589 | // Preg yells if you try to give it an empty string |
590 | | - if( $wgInvalidUsernameCharacters ) { |
| 590 | + if( $wgInvalidUsernameCharacters !== '' ) { |
591 | 591 | if( preg_match( '/[' . preg_quote( $wgInvalidUsernameCharacters, '/' ) . ']/', $name ) ) { |
592 | 592 | wfDebugLog( 'username', __METHOD__ . |
593 | 593 | ": '$name' invalid due to wgInvalidUsernameCharacters" ); |