mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-22 12:49:55 +09:00
금지단어 비교시 eregi를 이용하여 대소문자 같이 비교하도록 스팸필터 모듈 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3269 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f9a2015e23
commit
966e932ccd
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,7 @@
|
|||
$count = count($word_list);
|
||||
for($i=0;$i<$count;$i++) {
|
||||
$word = $word_list[$i]->word;
|
||||
if(strpos($text, $word)!==false) return new Object(-1,sprintf(Context::getLang('msg_alert_denied_word'), $word));
|
||||
if(eregi($word, $text)!==false) return new Object(-1,sprintf(Context::getLang('msg_alert_denied_word'), $word));
|
||||
}
|
||||
|
||||
return new Object();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue