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:
167a8c8
)
In getCategorySortkey: strip tabs and line feeds from the user-supplied category...
author
Tim Starling
<tstarling@users.mediawiki.org>
Thu, 20 Jan 2011 05:18:39 +0000
(
05:18
+0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Thu, 20 Jan 2011 05:18:39 +0000
(
05:18
+0000)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
fd62d4d
..
c8fe7b8
100644
(file)
--- a/
includes/Title.php
+++ b/
includes/Title.php
@@
-4152,6
+4152,7
@@
class Title {
# Separate with a null byte, so the unprefixed part is only used as
# a tiebreaker when two pages have the exact same prefix -- null
# sorts before everything else (hopefully).
+ $prefix = strtr( $prefix, "\n\t", ' ' );
return "$prefix\n$unprefixed";
}
return $unprefixed;