Merge pull request #2162 from simonwelsh/sec-redirect

Only redirect on logout if we're not already redirecting
This commit is contained in:
Andrew Short 2013-06-26 15:56:56 -07:00
commit 973a23fac8

View File

@ -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();
}
}