mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix #1634 bypass spamfilter when sending messages from core modules
This commit is contained in:
parent
46ef2437b7
commit
fc4d8a6824
9 changed files with 17 additions and 11 deletions
|
|
@ -181,6 +181,10 @@ class spamfilterController extends spamfilter
|
|||
function triggerSendMessage(&$obj)
|
||||
{
|
||||
if($_SESSION['avoid_log']) return;
|
||||
if(isset($obj->use_spamfilter) && $obj->use_spamfilter === false)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
$logged_info = Context::get('logged_info');
|
||||
if($logged_info->is_admin == 'Y') return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue