From 1c639c320e9cf2595867610c1969aee613e34440 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 28 Nov 2008 05:29:52 +0000 Subject: [PATCH] MINOR reverted r66670 (see discussion at http://groups.google.com/group/silverstripe-dev/browse_thread/thread/1ed2a3c9224a785c) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@66943 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 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; }