diff --git a/core/control/Controller.php b/core/control/Controller.php index a75fb3d07..ff5070e65 100644 --- a/core/control/Controller.php +++ b/core/control/Controller.php @@ -208,7 +208,7 @@ class Controller extends ViewableData { if(!$securityID || !isset($this->requestParams['SecurityID']) || $securityID != $this->requestParams['SecurityID']) { // Don't show error on live sites, as spammers create a million of these - if(Director::isDev()) { + if(!Director::isLive()) { trigger_error("Security ID doesn't match, possible CRSF attack.", E_USER_ERROR); } else { die();