r41328 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41327‎ | r41328 | r41329 >
Date:01:41, 28 September 2008
Author:aaron
Status:old
Tags:
Comment:
Remove validation step that removes prefix if validation is off (for bug 12654)
Modified paths:
  • /trunk/phase3/includes/User.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/User.php
@@ -646,7 +646,9 @@
647647 return false;
648648
649649 # Clean up name according to title rules
650 - $t = Title::newFromText( $name );
 650+ $t = ($validate === 'valid') ?
 651+ Title::newFromText( $name ) : Title::makeTitle( NS_USER, $name );
 652+ # Check for invalid titles
651653 if( is_null( $t ) ) {
652654 return false;
653655 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r41304Let invalid usernames be renamed (bug 12654)aaron11:20, 27 September 2008