aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche/Tools.class.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2014-10-14 19:57:16 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2014-10-14 19:57:16 +0200
commit8fd0512a3cd97d870aa3442c78bbdd034f541c7d (patch)
tree78196a70eed4ca75787a9d169fea24e11a2fa3f5 /inc/poche/Tools.class.php
parent5b16d508b5b3b9a981ef357b68f8b0167b3fd631 (diff)
parent2d4cfc58ec324987ad39365cbb3e4eb49df4e426 (diff)
downloadwallabag-8fd0512a3cd97d870aa3442c78bbdd034f541c7d.tar.gz
wallabag-8fd0512a3cd97d870aa3442c78bbdd034f541c7d.tar.zst
wallabag-8fd0512a3cd97d870aa3442c78bbdd034f541c7d.zip
Merge pull request #848 from 11mariom/dev
Add support for custom http port
Diffstat (limited to 'inc/poche/Tools.class.php')
-rwxr-xr-xinc/poche/Tools.class.php1
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"]);