removed port if 80 or 443

This commit is contained in:
Lars Kneschke 2006-06-06 07:05:26 +00:00
parent 73b00c865e
commit 3821544b6d

View File

@ -359,7 +359,14 @@ class Horde_SyncML_SyncMLHdr extends Horde_SyncML_ContentHandler {
} else { } else {
$httpPrefix = 'http://'; $httpPrefix = 'http://';
} }
$output->characters($httpPrefix . $_SERVER['SERVER_NAME'] .':'. $_SERVER['SERVER_PORT'] . $_SERVER['PHP_SELF'] . '?syncml_sessionid=' . session_id());
if($_SERVER['SERVER_PORT'] != '443' && $_SERVER['SERVER_PORT'] != '80') {
$port = ':'. $_SERVER['SERVER_PORT'];
} else {
$port = '';
}
$output->characters($httpPrefix . $_SERVER['SERVER_NAME'] . $port . $_SERVER['PHP_SELF'] . '?syncml_sessionid=' . session_id());
$output->endElement($uri, 'RespURI'); $output->endElement($uri, 'RespURI');
} }