mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-27 21:07:12 +00:00
login: switch to absolute redirect urls
This commit is contained in:
@@ -61,7 +61,7 @@ function bwLimitChange(elem) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php $return = urlencode($_SERVER["REQUEST_URI"]) ?>
|
||||
<?php $return = urlencode(make_self_url()) ?>
|
||||
|
||||
<div class="container">
|
||||
|
||||
|
||||
@@ -14,6 +14,12 @@
|
||||
* If you come crying when stuff inevitably breaks, you will be mocked and told
|
||||
* to get out. */
|
||||
|
||||
function make_self_url() {
|
||||
$proto = is_server_https() ? 'https' : 'http';
|
||||
|
||||
return $proto . '://' . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];
|
||||
}
|
||||
|
||||
function make_self_url_path() {
|
||||
$proto = is_server_https() ? 'https' : 'http';
|
||||
$url_path = $proto . '://' . $_SERVER["HTTP_HOST"] . parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH);
|
||||
|
||||
Reference in New Issue
Block a user