From ab036d47645867374cb6f4f2d168f407e96ceda5 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Mon, 2 Jul 2012 17:52:51 +0200 Subject: webdav client crashes for secure connections if he doesn't have the right root certificate for ssl verification. For the moment I print at least a useful error message to the OC log and the Apache log --- apps/files_external/lib/webdav.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/files_external') diff --git a/apps/files_external/lib/webdav.php b/apps/files_external/lib/webdav.php index d0fe2aca854..dda8afe9f2a 100644 --- a/apps/files_external/lib/webdav.php +++ b/apps/files_external/lib/webdav.php @@ -96,6 +96,8 @@ class OC_FileStorage_DAV extends OC_Filestorage_Common{ $responseType=$response["{DAV:}resourcetype"]->resourceType; return (count($responseType)>0 and $responseType[0]=="{DAV:}collection")?'dir':'file'; }catch(Exception $e){ + error_log($e->getMessage()); + \OCP\Util::writeLog("webdav client", \OCP\Util::sanitizeHTML($e->getMessage()), \OCP\Util::ERROR); return false; } } -- cgit v1.2.3