* (bug 2319) Fix parse hook tag matching
[lhc/web/wiklou.git] / includes / Parser.php
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";
                }