Merge branch 'master' of github.com:gnuboard/g5

This commit is contained in:
thisgun
2018-12-18 13:46:31 +09:00

View File

@ -2900,10 +2900,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++;
}