From aa0d8d8096561a59b142749dc492073e51b6731e Mon Sep 17 00:00:00 2001 From: nbm Date: Mon, 4 Dec 2006 14:48:40 +0000 Subject: [PATCH] KTS-1483: Don't double-up port numbers in addQueryString --- lib/util/ktutil.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/util/ktutil.inc b/lib/util/ktutil.inc index 90dab44..c3aa8c2 100644 --- a/lib/util/ktutil.inc +++ b/lib/util/ktutil.inc @@ -497,7 +497,9 @@ class KTUtil { $oUrl->port = 443; } } - $oUrl->host = $oKTConfig->get("KnowledgeTree/serverName"); + $host = $oKTConfig->get("KnowledgeTree/serverName"); + $host = explode(':', $host); + $oUrl->host = $host[0]; if(!is_array($qs)) { $aQs = $oUrl->_parseRawQuerystring($qs); -- libgit2 0.21.4