From: Brion Vibber Date: Fri, 9 May 2008 20:02:12 +0000 (+0000) Subject: * (bug 14058) Support pipe trick for namespaces and interwikis with "-" X-Git-Tag: 1.31.0-rc.0~47770 X-Git-Url: http://git.cyclocoop.org/%22.htmlspecialchars%28%24url_syndic%29.%22?a=commitdiff_plain;h=7fbbd941c774e7b0cebde5eed3b212e2765ce15e;p=lhc%2Fweb%2Fwiklou.git * (bug 14058) Support pipe trick for namespaces and interwikis with "-" --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index e7b60484a0..5737b092ff 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/Parser.php b/includes/Parser.php index 3e309bee75..8f77ecf833 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -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|]]