mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-18 23:31:31 +00:00
fix login redirect to calling page
This commit is contained in:
@@ -760,7 +760,8 @@
|
|||||||
if (!USE_HTTP_AUTH) {
|
if (!USE_HTTP_AUTH) {
|
||||||
if (!$_SESSION["uid"]) {
|
if (!$_SESSION["uid"]) {
|
||||||
$redirect_uri = get_login_redirect();
|
$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;
|
exit;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user