Permalink
Browse files

MDL-13705

  • Loading branch information...
1 parent 6a4fc50 commit 48b31fcc65cf7a25eb97333647c6b971b782ce19 skodak committed Feb 28, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/weblib.php
View
@@ -1600,6 +1600,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("/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') {
//Adobe Acrobat Reader XSS protection
$arreach['value'] = preg_replace('/(\.(pdf|fdf|xfdf|xdp|xfd))[^a-z0-9_\.\-].*$/i', '$1', $arreach['value']);

0 comments on commit 48b31fc

Please sign in to comment.