From 2097b8a72fcfb4c2216e5fcb894c3481c4741022 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 4 Jun 2005 22:49:08 +0000 Subject: [PATCH] * (bug 2319) Fix parse hook tag matching --- RELEASE-NOTES | 1 + includes/Parser.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index d818a3201a..42ccc3a353 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -261,6 +261,7 @@ Various bugfixes, small features, and a few experimental things: * (bug 814) Integrate AuthPlugin changes to support Ryan Lane's external LDAP authentication plugin * (bug 2034) Armor HTML attributes against template inclusion and links munging +* (bug 2319) Fix parse hook tag matching === Caveats === diff --git a/includes/Parser.php b/includes/Parser.php index d9fa2af7e7..ce41c00876 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -278,7 +278,7 @@ class Parser $start = '//'; } else { - $start = "/<$tag([^>]*)>/i"; + $start = "/<$tag(\\s+[^>]*|\\s*)>/i"; $end = "/<\\/$tag\\s*>/i"; } -- 2.20.1