* (bug 2319) Fix parse hook tag matching
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 4 Jun 2005 22:49:08 +0000 (22:49 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 4 Jun 2005 22:49:08 +0000 (22:49 +0000)
RELEASE-NOTES
includes/Parser.php

index d818a32..42ccc3a 100644 (file)
@@ -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 ===
index d9fa2af..ce41c00 100644 (file)
@@ -278,7 +278,7 @@ class Parser
                        $start = '/<!--()/';
                        $end   = '/-->/';
                } else {
-                       $start = "/<$tag([^>]*)>/i";
+                       $start = "/<$tag(\\s+[^>]*|\\s*)>/i";
                        $end   = "/<\\/$tag\\s*>/i";
                }