mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00: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();
|
$member = Member::currentUser();
|
||||||
if($member) $member->logOut();
|
if($member) $member->logOut();
|
||||||
|
|
||||||
if($redirect) $this->redirectBack();
|
if($redirect && (!$this->response || !$this->response->isFinished())) {
|
||||||
|
$this->redirectBack();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user