dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac14a8a
)
* (bug 9780) Fix normalization of titles with initial colon followed by whitespace
author
Brion Vibber
<brion@users.mediawiki.org>
Fri, 4 May 2007 14:30:02 +0000
(14:30 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Fri, 4 May 2007 14:30:02 +0000
(14:30 +0000)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
531944a
..
0ff2e80
100644
(file)
--- a/
includes/Title.php
+++ b/
includes/Title.php
@@
-1637,6
+1637,7
@@
class Title {
if ( ':' == $dbkey{0} ) {
$this->mNamespace = NS_MAIN;
$dbkey = substr( $dbkey, 1 ); # remove the colon but continue processing
+ $dbkey = trim( $dbkey, '_' ); # remove any subsequent whitespace
}
# Namespace or interwiki prefix