금지단어 비교시 eregi를 이용하여 대소문자 같이 비교하도록 스팸필터 모듈 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3269 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-12-08 07:10:27 +00:00
parent f9a2015e23
commit 966e932ccd

View file

@ -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();