mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Include link and image URL in spam filter
스팸필터에 등록한 키워드가 <a href=""> 속성이나 <img src=""> 속성에 들어 있어도 제대로 필터링되도록 변경
This commit is contained in:
parent
71bee10ae9
commit
1b79f453b7
2 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue