From aa01d50c7377731b403f32fd4615776725dcbb40 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Sat, 7 Jan 2006 23:13:16 +0000 Subject: [PATCH] Do a silent cleanup of the signature on change --- includes/SpecialPreferences.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 ); -- 2.20.1