From: Aryeh Gregor Date: Mon, 7 May 2007 01:05:54 +0000 (+0000) Subject: (bug 9156) Section edit links break if wikitext headings have non-whitespace after... X-Git-Tag: 1.31.0-rc.0~53044 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=906dd79c1fdf20623ba00aaa53891f5c7a2ce748;p=lhc%2Fweb%2Fwiklou.git (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. --- 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 | .*?