From 611942d03ed209d19ec58c42b5efceef4b24eebc Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Wed, 11 Jul 2007 20:44:33 +0000 Subject: [PATCH] Fix bug with in front of links for wikis where linkPrefixExtension is true --- RELEASE-NOTES | 1 + includes/Parser.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index dd62f75b62..1170769ef6 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -277,6 +277,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 6965) Cannot include "Template:R" with {{R}} (magic word conflict) * Padding parser functions now work with strings like '0' that evaluate to false * (bug 10332) Title->userCan( 'edit' ) may return false positive +* Fix bug with in front of links for wikis where linkPrefixExtension is true == API changes since 1.10 == diff --git a/includes/Parser.php b/includes/Parser.php index 0f2b8e1e27..ef66344bf3 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -485,7 +485,7 @@ class Parser $inside = $p[4]; } - $marker = "$uniq_prefix-$element-" . sprintf('%08X', $n++) . '-QINU'; + $marker = "$uniq_prefix-$element-" . sprintf('%08X', $n++) . "-QINU\x07"; $stripped .= $marker; if ( $close === '/>' ) { @@ -4633,7 +4633,7 @@ class Parser # now that we can be sure that no pseudo-sections are in the source, # split it up by section $uniq = preg_quote( $this->uniqPrefix(), '/' ); - $comment = "(?:$uniq-!--.*?QINU)"; + $comment = "(?:$uniq-!--.*?QINU\x07)"; $secs = preg_split( "/ ( -- 2.20.1