From c86110d64557405234f4548a8b58a3323dfb6cd3 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 21 Jun 2006 23:13:05 +0000 Subject: [PATCH] * (bug 6398) Work around apparent PCRE bug breaking section editing when massively-indented preformatted text immediately followed a header --- RELEASE-NOTES | 3 +++ includes/Parser.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 998086f18a..90a182b5a1 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -532,6 +532,9 @@ Some default configuration options have changed: * (bug 6351) Update to German translation (de) * Respect language directionality when displaying arrow in Special:Brokenredirects * Remove unused "validation" table definitions from the schema files +* (bug 6398) Work around apparent PCRE bug breaking section editing when + massively-indented preformatted text immediately followed a header + == Compatibility == diff --git a/includes/Parser.php b/includes/Parser.php index bf7e24a847..37832a9f0b 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -4327,7 +4327,7 @@ class Parser (=+) # Should this be limited to 6? .+? # Section title... \\2 # Ending = count must match start - (?:$comment|<\/?noinclude>|\s+)* # Trailing whitespace ok + (?:$comment|<\/?noinclude>|[ \\t]+)* # Trailing whitespace ok $ | -- 2.20.1