r12487 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12486‎ | r12487 | r12488 >
Date:23:13, 7 January 2006
Author:robchurch
Status:old
Tags:
Comment:
Do a silent cleanup of the signature on change
Modified paths:
  • /trunk/phase3/includes/SpecialPreferences.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialPreferences.php
@@ -227,10 +227,8 @@
228228 $needRedirect = false;
229229 }
230230
231 - if( $this->badNickname() ) {
232 - $this->mainPrefsForm( 'error', wfMsg( 'badsig2' ) );
233 - return;
234 - }
 231+ # Clean up the signature a little
 232+ $this->mNick = Parser::cleanSig( $this->mNick );
235233
236234 $wgUser->setOption( 'language', $this->mUserLanguage );
237235 $wgUser->setOption( 'variant', $this->mUserVariant );

Status & tagging log