From: Rob Church Date: Sat, 7 Jan 2006 23:13:16 +0000 (+0000) Subject: Do a silent cleanup of the signature on change X-Git-Tag: 1.6.0~711 X-Git-Url: http://git.cyclocoop.org//%27http:/code.google.com/p/ie7-js//%27?a=commitdiff_plain;h=aa01d50c7377731b403f32fd4615776725dcbb40;p=lhc%2Fweb%2Fwiklou.git Do a silent cleanup of the signature on change --- diff --git a/includes/SpecialPreferences.php b/includes/SpecialPreferences.php index cd01ddad11..c55d1038a3 100644 --- a/includes/SpecialPreferences.php +++ b/includes/SpecialPreferences.php @@ -227,10 +227,8 @@ class PreferencesForm { $needRedirect = false; } - if( $this->badNickname() ) { - $this->mainPrefsForm( 'error', wfMsg( 'badsig2' ) ); - return; - } + # Clean up the signature a little + $this->mNick = Parser::cleanSig( $this->mNick ); $wgUser->setOption( 'language', $this->mUserLanguage ); $wgUser->setOption( 'variant', $this->mUserVariant );