KVE-2018-1316 취약점 다시 재 수정

This commit is contained in:
thisgun
2018-12-18 12:26:12 +09:00
parent c028d34f78
commit 061e73c014

View File

@ -2885,10 +2885,12 @@ function clean_xss_tags($str)
{
$str_len = strlen($str);
$i = 0;
while($i <= $str_len){
$result = preg_replace('#</*(?:applet|b(?:ase|gsound|link)|embed|frame(?:set)?|i(?:frame|layer)|l(?:ayer|ink)|meta|object|s(?:cript|tyle)|title|xml)[^>]*+>#i', '', $str);
if((string)$result === (string)$str)
break;
if((string)$result === (string)$str) break;
$str = $result;
$i++;
}