mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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
This commit is contained in:
parent
40906bc408
commit
1c639c320e
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user