From 7fbbd941c774e7b0cebde5eed3b212e2765ce15e Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 9 May 2008 20:02:12 +0000 Subject: [PATCH] * (bug 14058) Support pipe trick for namespaces and interwikis with "-" --- RELEASE-NOTES | 1 + includes/Parser.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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|]] -- 2.20.1