This commit is contained in:
the-djmaze 2024-01-22 15:11:44 +01:00
parent 5e012bd66e
commit 61c533a1a6
8 changed files with 56 additions and 20 deletions

View file

@ -62,11 +62,11 @@ class DemoAccountPlugin extends \RainLoop\Plugins\AbstractPlugin
$latin = transliterator_transliterate('Any-Latin; Latin-ASCII; Lower()', $aActionParams['folder']);
if (false !== \strpos($latin, 'nigger')) {
\error_log("blocked {$sMethodName} {$aActionParams['folder']}");
exit;
throw new \RainLoop\Exceptions\ClientException(\RainLoop\Notifications::DemoAccountError);
}
}
else if ('DoFolderClear' === $sMethodName || 'DoMessageDelete' === $sMethodName) {
exit;
throw new \RainLoop\Exceptions\ClientException(\RainLoop\Notifications::DemoAccountError);
}
}