mirror of
https://github.com/Xkeeper0/jul.git
synced 2025-05-19 08:40:21 -07:00
more HTML filter fixes
This commit is contained in:
parent
ca406f7268
commit
291c053395
@ -1289,7 +1289,7 @@ function xss_clean($data) {
|
|||||||
#$data = preg_replace('#(<[^>]+?[\x00-\x20"\'])(?:on|xmlns)[^>]*+>#iu', '$1>', $data);
|
#$data = preg_replace('#(<[^>]+?[\x00-\x20"\'])(?:on|xmlns)[^>]*+>#iu', '$1>', $data);
|
||||||
do {
|
do {
|
||||||
$old_data = $data;
|
$old_data = $data;
|
||||||
$data = preg_replace('#(<[A-Za-z][^>]*?[\x00-\x20"\'])(on|xmlns)([^>]*+)>#iu', '$1DISABLED_$2$3>', $data);
|
$data = preg_replace('#(<[A-Za-z][^>]*?[\x00-\x20\x2F"\'])(on|xmlns)[A-Za-z]*=([^>]*+)>#iu', '$1DISABLED_$2$3>', $data);
|
||||||
} while ($old_data !== $data);
|
} while ($old_data !== $data);
|
||||||
|
|
||||||
// Remove javascript: and vbscript: protocols
|
// Remove javascript: and vbscript: protocols
|
||||||
|
Loading…
x
Reference in New Issue
Block a user