<layer> != <link>

This commit is contained in:
Xkeeper 2018-01-24 21:39:00 -08:00
parent cd6ec44aba
commit 94f372a196

View File

@ -1277,7 +1277,7 @@ function xss_clean($data) {
do { do {
// Remove really unwanted tags // Remove really unwanted tags
$old_data = $data; $old_data = $data;
$data = preg_replace('#<(/*(?:applet|b(?:ase|gsound)|embed|frame(?:set)?|i(?:frame|layer)|link|meta|object|script|title|xml)[^>]*+)>#i', '&lt;$1&gt;', $data); $data = preg_replace('#<(/*(?:applet|b(?:ase|gsound)|embed|frame(?:set)?|i(?:frame|layer)|layer|meta|object|script|title|xml)[^>]*+)>#i', '&lt;$1&gt;', $data);
} while ($old_data !== $data); } while ($old_data !== $data);
return $data; return $data;