From 906dd79c1fdf20623ba00aaa53891f5c7a2ce748 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Mon, 7 May 2007 01:05:54 +0000 Subject: [PATCH] (bug 9156) Section edit links break if wikitext headings have non-whitespace after them on the line. One-character change to a regex, I tested it on some simple use cases. Shouldn't cause any breakage. --- RELEASE-NOTES | 2 ++ includes/Parser.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index fd1d8a915f..e7f8ee1d75 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -40,6 +40,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN like [[User:#123|#123]] * Use the standard HTTP fetch functions when retrieving remote wiki pages through transwiki, so we can take advantage of cURL goodies if available +* (bug 9156) Section edit links break if wikitext headings have non-whitespace + after them on the line == Maintenance script changes since 1.10 == diff --git a/includes/Parser.php b/includes/Parser.php index 0ef3d2b673..30a416953a 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -4582,7 +4582,7 @@ class Parser .+? # Section title... \\2 # Ending = count must match start (?:$comment|<\/?noinclude>|[ \\t]+)* # Trailing whitespace ok - $ + # Bug 9156: don't require EOL here | .*? -- 2.20.1