This should fix bug 980557
authorMagnus Manske <magnusmanske@users.mediawiki.org>
Wed, 4 Aug 2004 20:56:46 +0000 (20:56 +0000)
committerMagnus Manske <magnusmanske@users.mediawiki.org>
Wed, 4 Aug 2004 20:56:46 +0000 (20:56 +0000)
includes/Parser.php

index f6b1b27..70fe988 100644 (file)
@@ -642,6 +642,9 @@ class Parser
                        '/(\\w+)(\\s*=\\s*([^\\s\">]+|\"[^\">]*\"))?/e',
                        "(in_array(strtolower(\"\$1\"),\$htmlattrs)?(\"\$1\".((\"x\$3\" != \"x\")?\"=\$3\":'')):'')",
                        $t);
+                       
+               $t = str_replace ( "<></>" , "" , $t ) ; # This should fix bug 980557
+                       
                # Strip javascript "expression" from stylesheets. Brute force approach:
                # If anythin offensive is found, all attributes of the HTML tag are dropped