From a6b53002df0a5e275148036a37d6dc67c81dbc78 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 20 Apr 2006 06:03:02 +0000 Subject: [PATCH] for https:// url the port was detected as 80 --- phpgwapi/inc/class.vfs_dav.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.vfs_dav.inc.php b/phpgwapi/inc/class.vfs_dav.inc.php index fc5fe7a2cb..e87213cbf6 100644 --- a/phpgwapi/inc/class.vfs_dav.inc.php +++ b/phpgwapi/inc/class.vfs_dav.inc.php @@ -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);