1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-16 00:25:56 +00:00

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

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 {