diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-11-13 15:23:52 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-11-13 15:23:52 +0100 |
commit | 760d44d1943ae1d016292e5cbbe30f3ed4813b50 (patch) | |
tree | 37e80402cebfd492421f34dc16eccf7b14ddfb46 /inc | |
parent | f2d3ee98a6a3137f8c3edd62294d34a8ff4700b6 (diff) | |
parent | 705f04937fb5d5db59fe7b9643402f6ffbf07ff9 (diff) | |
download | wallabag-760d44d1943ae1d016292e5cbbe30f3ed4813b50.tar.gz wallabag-760d44d1943ae1d016292e5cbbe30f3ed4813b50.tar.zst wallabag-760d44d1943ae1d016292e5cbbe30f3ed4813b50.zip |
Merge branch 'DmitrySandalov-master' into dev
Diffstat (limited to 'inc')
-rw-r--r-- | inc/poche/Tools.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php index 7a872e7d..750553f1 100644 --- a/inc/poche/Tools.class.php +++ b/inc/poche/Tools.class.php | |||
@@ -53,12 +53,12 @@ class Tools | |||
53 | 53 | ||
54 | $scriptname = str_replace('/index.php', '/', $_SERVER["SCRIPT_NAME"]); | 54 | $scriptname = str_replace('/index.php', '/', $_SERVER["SCRIPT_NAME"]); |
55 | 55 | ||
56 | if (!isset($_SERVER["SERVER_NAME"])) { | 56 | if (!isset($_SERVER["HTTP_HOST"])) { |
57 | return $scriptname; | 57 | return $scriptname; |
58 | } | 58 | } |
59 | 59 | ||
60 | return 'http' . ($https ? 's' : '') . '://' | 60 | return 'http' . ($https ? 's' : '') . '://' |
61 | . $_SERVER["SERVER_NAME"] . $serverport . $scriptname; | 61 | . $_SERVER["HTTP_HOST"] . $serverport . $scriptname; |
62 | } | 62 | } |
63 | 63 | ||
64 | public static function redirect($url = '') | 64 | public static function redirect($url = '') |