mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-27 03:21:01 +00:00
[fix] with some config, http host is different
This commit is contained in:
parent
5fe1948097
commit
69c57493e7
1 changed files with 3 additions and 1 deletions
|
@ -59,8 +59,10 @@ class Tools
|
|||
return $scriptname;
|
||||
}
|
||||
|
||||
$host = (isset($_SERVER['HTTP_X_FORWARDED_HOST']) ? $_SERVER['HTTP_X_FORWARDED_HOST'] : (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME']));
|
||||
|
||||
return 'http' . ($https ? 's' : '') . '://'
|
||||
. $_SERVER["HTTP_HOST"] . $serverport . $scriptname;
|
||||
. $host . $serverport . $scriptname;
|
||||
}
|
||||
|
||||
public static function redirect($url = '')
|
||||
|
|
Loading…
Reference in a new issue