* (bug 14058) Support pipe trick for namespaces and interwikis with "-"
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 9 May 2008 20:02:12 +0000 (20:02 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 9 May 2008 20:02:12 +0000 (20:02 +0000)
RELEASE-NOTES
includes/Parser.php

index e7b6048..5737b09 100644 (file)
@@ -266,6 +266,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   Also makes SQLite path configurable in the installer.
 * (bug 13546) Follow image redirects on image page
 * (bug 12644) Template list on edit page now sorted on preview
+* (bug 14058) Support pipe trick for namespaces and interwikis with "-"
 
 === API changes in 1.13 ===
 
index 3e309be..8f77ecf 100644 (file)
@@ -3699,7 +3699,7 @@ class Parser
                #
                global $wgLegalTitleChars;
                $tc = "[$wgLegalTitleChars]";
-               $nc = '[ _0-9A-Za-z\x80-\xff]'; # Namespaces can use non-ascii!
+               $nc = '[ _0-9A-Za-z\x80-\xff-]'; # Namespaces can use non-ascii!
 
                $p1 = "/\[\[(:?$nc+:|:|)($tc+?)( \\($tc+\\))\\|]]/";            # [[ns:page (context)|]]
                $p3 = "/\[\[(:?$nc+:|:|)($tc+?)( \\($tc+\\)|)(, $tc+|)\\|]]/";  # [[ns:page (context), context|]]