diff options
author | Andrew Dolgov <[email protected]> | 2005-12-11 07:50:06 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-12-11 07:50:06 +0100 |
commit | e31dca14069a166a093a1b42e8dac1075d94d768 (patch) | |
tree | b56ff440d20b3a60ebdbfd86f21c3f0a4993a349 /functions.php | |
parent | 5ddadb4c1eb2edcca5edc2eba3bb4c0907793c74 (diff) |
fix login redirect to calling page
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/functions.php b/functions.php index eedb9ab7b..dbdc1ce69 100644 --- a/functions.php +++ b/functions.php @@ -760,7 +760,8 @@ if (!USE_HTTP_AUTH) { if (!$_SESSION["uid"]) { $redirect_uri = get_login_redirect(); - header("Location: $redirect_uri?rt=tt-rss.php"); + $return_to = preg_replace('/.*?\//', '', $_SERVER["REQUEST_URI"]); + header("Location: $redirect_uri?rt=$return_to"); exit; } } else { |