mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-14 11:00:11 -04:00
Improve the fix for #1176 to use request::is_ajax() instead of tacking
on a query param to urls that appear in dialogs. This keeps things simpler.
This commit is contained in:
@@ -84,10 +84,7 @@ class Admin_Controller extends Controller {
|
||||
private static function _prompt_for_reauth($controller_name, $args) {
|
||||
if (request::method() == "get") {
|
||||
// Avoid anti-phishing protection by passing the url as session variable.
|
||||
$reauthenticate =
|
||||
array("continue_url" => url::abs_current(true),
|
||||
"in_dialog" => strpos(Router::$query_string, "gallery_dialog_request") !== false);
|
||||
Session::instance()->set("reauthenticate", $reauthenticate);
|
||||
Session::instance()->set("continue_url", url::abs_current(true));
|
||||
}
|
||||
|
||||
url::redirect("reauthenticate");
|
||||
|
||||
Reference in New Issue
Block a user