[Fusionforge-commits] r14210 - trunk/src/common/include

Olivier Berger olberger at fusionforge.org
Wed Aug 24 11:46:47 CEST 2011


Author: olberger
Date: 2011-08-24 11:46:47 +0200 (Wed, 24 Aug 2011)
New Revision: 14210

Modified:
   trunk/src/common/include/utils.php
Log:
Don't take into account forge_get_config('https_port') if empty

Modified: trunk/src/common/include/utils.php
===================================================================
--- trunk/src/common/include/utils.php	2011-08-24 09:43:56 UTC (rev 14209)
+++ trunk/src/common/include/utils.php	2011-08-24 09:46:47 UTC (rev 14210)
@@ -1092,7 +1092,7 @@
 		$url = "http://" ;
 	}
 	$url .= forge_get_config('web_host') ;
-	if (forge_get_config('https_port') != 443) {
+	if (forge_get_config('https_port') && (forge_get_config('https_port') != 443)) {
 		$url .= ":".forge_get_config('https_port') ;
 	}
 	return $url;




More information about the Fusionforge-commits mailing list