From 40b9ac10159d973349ea2b087870d664fe3499a8 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Fri, 27 Jun 2014 09:18:17 +0000 Subject: [PATCH] Add port in URL to the routing module git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1498 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- route.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route.php b/route.php index 7974d38..0fb376a 100644 --- a/route.php +++ b/route.php @@ -76,7 +76,7 @@ class route else $url = "http:"; if (isset ($_SERVER["SERVER_NAME"])) - $url .= "//".$_SERVER["SERVER_NAME"]; + $url .= "//".$_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"]; if (isset ($_SERVER["REQUEST_URI"])) $url .= $_SERVER["REQUEST_URI"]; return $url;