mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-16 02:25:57 +00:00
properly handle redirecting back to requested page after logging in (closes #302)
This commit is contained in:
@@ -1985,7 +1985,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
header("Location: " . $_SERVER["REQUEST_URI"]);
|
||||
if ($_REQUEST['return']) {
|
||||
header("Location: " . $_REQUEST['return']);
|
||||
} else {
|
||||
header("Location: " . $_SERVER["REQUEST_URI"]);
|
||||
}
|
||||
|
||||
exit;
|
||||
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user