Fix for bug 2319, accidentally reverted in last checkin
[lhc/web/wiklou.git] / includes / Parser.php
index 2263f8d..0c7a142 100644 (file)
@@ -276,7 +276,7 @@ class Parser
                        $start = '/<!--()/';
                        $end   = '/-->/';
                } else {
-                       $start = "/<$tag([^>]*)>/i";
+                       $start = "/<$tag(\\s+[^>]*|\\s*)>/i";
                        $end   = "/<\\/$tag\\s*>/i";
                }