From: Chad Horohoe Date: Wed, 9 Feb 2011 14:59:44 +0000 (+0000) Subject: Followup r81812: per CR, this could be 0 X-Git-Tag: 1.31.0-rc.0~32097 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=4abff2596654626d04a13fb3c59d1db9f8ed93cd;p=lhc%2Fweb%2Fwiklou.git Followup r81812: per CR, this could be 0 --- diff --git a/includes/User.php b/includes/User.php index 0f9d9738f3..46d6f42db3 100644 --- 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" );