mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Show security id errors on test sites as well as dev
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.2.2@52384 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
f634ac7e58
commit
38b489ce26
@ -219,7 +219,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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user