Skip to content
Snippets Groups Projects
Commit ec067d9b authored by Satish's avatar Satish
Browse files

Revert "Tightened attribute check to cleanup."

This reverts commit ff5b9ac4.
parent f050f126
No related branches found
No related tags found
No related merge requests found
......@@ -667,9 +667,8 @@ function purifyHtmlEventAttributes($value){
"onreset|onsearch|onselect|onsubmit|onkeydown|onkeypress|onkeyup|".
"onclick|ondblclick|ondrag|ondragend|ondragenter|ondragleave|ondragover|".
"ondragstart|ondrop|onmousedown|onmousemove|onmouseout|onmouseover|".
"onmouseup|onmousewheel|onscroll|onwheel|oncopy|oncut|onpaste|onload|".
"onselectionchange|onabort|onselectstart";
if(preg_match("/\s*(".$htmlEventAttributes.")\s*=/i", $value)) {
"onmouseup|onmousewheel|onscroll|onwheel|oncopy|oncut|onpaste";
if(preg_match("/\s(".$htmlEventAttributes.")\s*=/i", $value)) {
$value = str_replace("=", "=", $value);
}
return $value;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment