mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #2162 from simonwelsh/sec-redirect
Only redirect on logout if we're not already redirecting
This commit is contained in:
commit
973a23fac8
@ -346,7 +346,9 @@ class Security extends Controller {
|
||||
$member = Member::currentUser();
|
||||
if($member) $member->logOut();
|
||||
|
||||
if($redirect) $this->redirectBack();
|
||||
if($redirect && (!$this->response || !$this->response->isFinished())) {
|
||||
$this->redirectBack();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user