Permalink
Browse files

Use the helper ulr:current instead of manually creating the continue …

…url.
  • Loading branch information...
1 parent 8763e47 commit f6c615c379bb6950dacff34bfda73a616dce6e6b @talmdal talmdal committed Feb 10, 2010
Showing with 1 addition and 3 deletions.
  1. +1 −3 modules/gallery/controllers/admin.php
@@ -56,10 +56,8 @@ public function __call($controller_name, $args) {
private static function _prompt_for_reauth($controller_name, $args) {
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.
- Session::instance()->set("continue_url", $continue_url);
+ Session::instance()->set("continue_url", url::current(true));
}
url::redirect("reauthenticate");
}

0 comments on commit f6c615c

Please sign in to comment.