Merge branch 'x_forwarded_proto' of yastupin/tt-rss into master
This commit is contained in:
commit
1003cb24b9
|
@ -15,7 +15,8 @@
|
||||||
* to get out. */
|
* to get out. */
|
||||||
|
|
||||||
function make_self_url_path() {
|
function make_self_url_path() {
|
||||||
$url_path = ($_SERVER['HTTPS'] != "on" ? 'http://' : 'https://') . $_SERVER["HTTP_HOST"] . parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH);
|
$proto = ($_SERVER['HTTPS'] == 'on' || $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') ? 'https' : 'http';
|
||||||
|
$url_path = $proto . '://' . $_SERVER["HTTP_HOST"] . parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH);
|
||||||
|
|
||||||
return $url_path;
|
return $url_path;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue