for https:// url the port was detected as 80

This commit is contained in:
Ralf Becker 2006-04-20 06:03:02 +00:00
parent fe025e3bd3
commit a6b53002df

View File

@ -143,7 +143,7 @@
$this->dav_pwd=$GLOBALS['egw_info']['user']['passwd'];
$parsed_url = parse_url($this->repository);
$this->dav_host=$parsed_url['host'];
$this->dav_port=@isset($parsed_url['port']) ? $parsed_url['port'] : 80;
$this->dav_port=@isset($parsed_url['port']) ? $parsed_url['port'] : ($parsed_url['scheme'] == 'https' ? 443 : 80);
$this->dav_client =& CreateObject('phpgwapi.http_dav_client');
$this->dav_client->set_credentials($this->dav_user,$this->dav_pwd);