fix login redirect to calling page

This commit is contained in:
Andrew Dolgov 2005-12-11 07:50:06 +01:00
parent 5ddadb4c1e
commit e31dca1406
1 changed files with 2 additions and 1 deletions

View File

@ -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 {