mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
ENHANCEMENT: Use get variable rather than session for Security::permissionFailure()'s BackURL, as it's more reliable
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.2@63030 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
e85f61a2bc
commit
3bef23e00e
@ -150,12 +150,10 @@ class Security extends Controller {
|
||||
Session::set("Security.Message.message", $message);
|
||||
Session::set("Security.Message.type", 'warning');
|
||||
|
||||
Session::set("BackURL", $_SERVER['REQUEST_URI']);
|
||||
|
||||
if(Director::is_ajax()) {
|
||||
die('NOTLOGGEDIN:');
|
||||
} else {
|
||||
Director::redirect("Security/login");
|
||||
Director::redirect("Security/login?BackURL=" . urlencode($_SERVER['REQUEST_URI']));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user