dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61fb81f
)
This should fix bug 980557
author
Magnus Manske
<magnusmanske@users.mediawiki.org>
Wed, 4 Aug 2004 20:56:46 +0000
(20:56 +0000)
committer
Magnus Manske
<magnusmanske@users.mediawiki.org>
Wed, 4 Aug 2004 20:56:46 +0000
(20:56 +0000)
includes/Parser.php
patch
|
blob
|
history
diff --git
a/includes/Parser.php
b/includes/Parser.php
index
f6b1b27
..
70fe988
100644
(file)
--- a/
includes/Parser.php
+++ b/
includes/Parser.php
@@
-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