From 3d5600c597795d5534421789b99d11c52ddeaf14 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 28 Nov 2008 05:30:31 +0000 Subject: [PATCH] MINOR merged from trunk git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@66944 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/control/HTTPResponse.php | 5 ++--- security/Security.php | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) 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 12e2a6a45..909a4f72d 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; }