mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
removed port if 80 or 443
This commit is contained in:
parent
73b00c865e
commit
3821544b6d
@ -359,7 +359,14 @@ class Horde_SyncML_SyncMLHdr extends Horde_SyncML_ContentHandler {
|
||||
} else {
|
||||
$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');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user