From 4abff2596654626d04a13fb3c59d1db9f8ed93cd Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 9 Feb 2011 14:59:44 +0000 Subject: [PATCH] Followup r81812: per CR, this could be 0 --- includes/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ); -- 2.20.1