mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -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
|
//check
|
||||||
$blocked_words = config_item('blocked_words');
|
$blocked_words = config_item('blocked_words');
|
||||||
$post = $this->input->post();
|
$post = $this->input->post();
|
||||||
$raw = $post['code'];
|
|
||||||
|
|
||||||
if (!$blocked_words)
|
if (!$blocked_words)
|
||||||
{
|
{
|
||||||
@ -947,7 +946,7 @@ class Main extends CI_Controller
|
|||||||
{
|
{
|
||||||
$word = trim($word);
|
$word = trim($word);
|
||||||
|
|
||||||
if (stristr($raw, $word))
|
if (stristr($post['code'], $word) || stristr($post['title'], $word))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user