From: Aaron Schulz Date: Sun, 28 Sep 2008 01:41:59 +0000 (+0000) Subject: Remove validation step that removes prefix if validation is off (for bug 12654) X-Git-Tag: 1.31.0-rc.0~45060 X-Git-Url: http://git.cyclocoop.org/%22%20.%20%20%20%24self2%20.%20%20%20%22&var_mode_affiche=boucle?a=commitdiff_plain;h=047a74e175d83043bd47599d90892a60de4570e9;p=lhc%2Fweb%2Fwiklou.git Remove validation step that removes prefix if validation is off (for bug 12654) --- diff --git a/includes/User.php b/includes/User.php index 6879d473fe..f7d7880cfc 100644 --- a/includes/User.php +++ b/includes/User.php @@ -646,7 +646,9 @@ class User { return false; # Clean up name according to title rules - $t = Title::newFromText( $name ); + $t = ($validate === 'valid') ? + Title::newFromText( $name ) : Title::makeTitle( NS_USER, $name ); + # Check for invalid titles if( is_null( $t ) ) { return false; }