mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 04:21:17 -05:00
apply blocked_words to title as well
This commit is contained in:
parent
442d206186
commit
a5c44e536c
@ -935,7 +935,6 @@ class Main extends CI_Controller
|
||||
//check
|
||||
$blocked_words = config_item('blocked_words');
|
||||
$post = $this->input->post();
|
||||
$raw = $post['code'];
|
||||
|
||||
if (!$blocked_words)
|
||||
{
|
||||
@ -947,7 +946,7 @@ class Main extends CI_Controller
|
||||
{
|
||||
$word = trim($word);
|
||||
|
||||
if (stristr($raw, $word))
|
||||
if (stristr($post['code'], $word) || stristr($post['title'], $word))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user