Skip to content

Commit

Permalink
Use the helper ulr:current instead of manually creating the continue …
Browse files Browse the repository at this point in the history
…url.
  • Loading branch information
Tim Almdal committed Feb 10, 2010
1 parent 8763e47 commit f6c615c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules/gallery/controllers/admin.php
Expand Up @@ -56,10 +56,8 @@ public function __call($controller_name, $args) {


private static function _prompt_for_reauth($controller_name, $args) { private static function _prompt_for_reauth($controller_name, $args) {
if (request::method() == "get" && !request::is_ajax()) { if (request::method() == "get" && !request::is_ajax()) {
$url_args = array("admin", $controller_name) + $args;
$continue_url = join("/", $url_args);
// Avoid anti-phishing protection by passing the url as session variable. // Avoid anti-phishing protection by passing the url as session variable.
Session::instance()->set("continue_url", $continue_url); Session::instance()->set("continue_url", url::current(true));
} }
url::redirect("reauthenticate"); url::redirect("reauthenticate");
} }
Expand Down

0 comments on commit f6c615c

Please sign in to comment.