From 136790a988cc90569ca53efcd7ea4949333cc570 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Fri, 27 Jun 2014 08:52:29 +0000 Subject: [PATCH] route : BUG : Add server port in routing to be used in VPN git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1497 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- route.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/route.php b/route.php index 043a494..7974d38 100644 --- a/route.php +++ b/route.php @@ -32,7 +32,8 @@ class route if (isset ($_SERVER["SCRIPT_NAME"])) $this->baseURL = dirname ($_SERVER["SCRIPT_NAME"]); if (isset ($_SERVER["SERVER_NAME"])) - $this->baseURL = "//".$_SERVER["SERVER_NAME"].$this->baseURL; + $this->baseURL = "//".$_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"] + .$this->baseURL; if (isset ($_SERVER["HTTPS"])) $this->baseURL = "https:".$this->baseURL; else