Hi!
What's the purpose using of such links like [[/Title]] instead of
[[Title]]? They probably should point to the same title. However, during
the upgrade of one wikisite (from 1.11.2 to 1.15.2) I've found there
were such titles in page table starting with slash, thus, inaccessible
(at least with current rewrite rules). First thing, we thought that
someone just mistyped the title, mistakingly placing starting slash in
front of Title name during the new title creation. I've made such links
invalid by changing value of $rxTc in Title::secureAndSplit()
$rxTc = '/' .
# Any character not allowed is
forbidden...
'[^' . Title::legalChars() . ']' .
# URL percent encoding sequences
interfere with the ability
# to round-trip titles -- you can't link
to them consistently.
'|%[0-9A-Fa-f]{2}' .
# XML/HTML character references produce
similar issues.
'|&[A-Za-z0-9\x80-\xff]+;' .
'|&#[0-9]+;' .
'|&#x[0-9A-Fa-f]+;' .
'|^\/' . # disable titles starting with
slash character
'/S';
for 1.15.2.
However, later it was found that FCKeditor sometimes creates such links!
Usually they point to correct titles, but the presence of titles with
starting slash in page table makes me think that sometimes MediaWiki (at
least in 1.11) allowed to create such entries.
Should I file this to bugzilla, or that isn't worth thing?
Dmitriy