Include link and image URL in spam filter

스팸필터에 등록한 키워드가 <a href=""> 속성이나 <img src=""> 속성에
들어 있어도 제대로 필터링되도록 변경
This commit is contained in:
Kijin Sung 2018-07-06 23:00:25 +09:00
parent 71bee10ae9
commit 1b79f453b7
2 changed files with 1 additions and 2 deletions

View file

@ -80,6 +80,7 @@ class spamfilterModel extends spamfilter
$word_list = $this->getDeniedWordList();
if(!count($word_list)) return new BaseObject();
$text = utf8_trim(utf8_normalize_spaces(htmlspecialchars_decode(strip_tags($text, '<a><img>'))));
foreach ($word_list as $word_item)
{
$word = $word_item->word;