diff options
author | Mariusz Kozakowski <11mariom+wordpress@gmail.com> | 2014-09-17 18:44:29 +0200 |
---|---|---|
committer | Mariusz Kozakowski <11mariom+wordpress@gmail.com> | 2014-09-23 18:44:14 +0200 |
commit | 2d4cfc58ec324987ad39365cbb3e4eb49df4e426 (patch) | |
tree | cdfbba46e641149cd9df6229c0d882136fe3fb17 /inc/poche/Tools.class.php | |
parent | a15108e65b12ceaf50821783bcaa1ee3fee10d13 (diff) | |
download | wallabag-2d4cfc58ec324987ad39365cbb3e4eb49df4e426.tar.gz wallabag-2d4cfc58ec324987ad39365cbb3e4eb49df4e426.tar.zst wallabag-2d4cfc58ec324987ad39365cbb3e4eb49df4e426.zip |
Add support for custom http port
Now you can use wallabag behind reverse proxy (i.e Squid or Varnish)
without problem with urls like wallabag.example.com:8080.
Diffstat (limited to 'inc/poche/Tools.class.php')
-rwxr-xr-x | inc/poche/Tools.class.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php index 93ec3fc6..beb4f30c 100755 --- a/inc/poche/Tools.class.php +++ b/inc/poche/Tools.class.php | |||
@@ -51,6 +51,7 @@ final class Tools | |||
51 | 51 | ||
52 | $serverport = (!isset($_SERVER["SERVER_PORT"]) | 52 | $serverport = (!isset($_SERVER["SERVER_PORT"]) |
53 | || $_SERVER["SERVER_PORT"] == '80' | 53 | || $_SERVER["SERVER_PORT"] == '80' |
54 | || $_SERVER["SERVER_PORT"] == HTTP_PORT | ||
54 | || ($https && $_SERVER["SERVER_PORT"] == '443') | 55 | || ($https && $_SERVER["SERVER_PORT"] == '443') |
55 | || ($https && $_SERVER["SERVER_PORT"]==SSL_PORT) //Custom HTTPS port detection | 56 | || ($https && $_SERVER["SERVER_PORT"]==SSL_PORT) //Custom HTTPS port detection |
56 | ? '' : ':' . $_SERVER["SERVER_PORT"]); | 57 | ? '' : ':' . $_SERVER["SERVER_PORT"]); |