Skip to content

Commit

Permalink
MDL-22042 fixed kses cleaning of html code
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jun 3, 2010
1 parent 48fa948 commit 704c5df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/weblib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1574,6 +1574,7 @@ function cleanAttributes2($htmlArray){
}
}
$arreach['value'] = preg_replace("/j\s*a\s*v\s*a\s*s\s*c\s*r\s*i\s*p\s*t/i", "Xjavascript", $arreach['value']);
$arreach['value'] = preg_replace("/v\s*b\s*s\s*c\s*r\s*i\s*p\s*t/i", "Xvbscript", $arreach['value']);
$arreach['value'] = preg_replace("/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n/i", "Xexpression", $arreach['value']);
$arreach['value'] = preg_replace("/b\s*i\s*n\s*d\s*i\s*n\s*g/i", "Xbinding", $arreach['value']);
} else if ($arreach['name'] == 'href') {
Expand Down

0 comments on commit 704c5df

Please sign in to comment.