dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
0706dc4
)
Merge "Fix title handling in User::getCanonicalName"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Wed, 30 Jul 2014 23:27:56 +0000
(23:27 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Wed, 30 Jul 2014 23:27:56 +0000
(23:27 +0000)
includes/User.php
patch
|
blob
|
history
diff --git
a/includes/User.php
b/includes/User.php
index
bbbaeac
..
a21119a
100644
(file)
--- a/
includes/User.php
+++ b/
includes/User.php
@@
-907,8
+907,9
@@
class User implements IDBAccessObject {
return false;
}
- // Clean up name according to title rules
- $t = ( $validate === 'valid' ) ?
+ // Clean up name according to title rules,
+ // but only when validation is requested (bug 12654)
+ $t = ( $validate !== false ) ?
Title::newFromText( $name ) : Title::makeTitle( NS_USER, $name );
// Check for invalid titles
if ( is_null( $t ) ) {