diff --git a/core/control/HTTPResponse.php b/core/control/HTTPResponse.php index e847c959f..c9e424a65 100644 --- a/core/control/HTTPResponse.php +++ b/core/control/HTTPResponse.php @@ -53,8 +53,7 @@ class HTTPResponse extends Object { 303, 304, 305, - 307, - 403 + 307 ); protected $statusCode = 200; @@ -174,7 +173,7 @@ class HTTPResponse extends Object { if(Director::is_ajax()) { Requirements::include_in_response($this); } - + if(in_array($this->statusCode, self::$redirect_codes) && headers_sent($file, $line)) { $url = $this->headers['Location']; echo diff --git a/security/Security.php b/security/Security.php index 93114acfb..fe92c73d6 100644 --- a/security/Security.php +++ b/security/Security.php @@ -200,8 +200,8 @@ class Security extends Controller { // TODO AccessLogEntry needs an extension to handle permission denied errors // Audit logging hook if($controller) $controller->extend('permissionDenied', $member); - - Director::redirect("Security/login", 403); + + Director::redirect("Security/login"); } return; }