diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-10-16 12:33:30 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-10-16 12:34:22 +0200 |
commit | 52e31405f7848e4fd9f9d19297bbb87facb09376 (patch) | |
tree | 5cfaac60336c61377ec37130f2d0f09a31cec8d4 /lib | |
parent | 7037f9c6f8e6160876fa924e12f3bdb2b0203acc (diff) | |
download | nextcloud-server-52e31405f7848e4fd9f9d19297bbb87facb09376.tar.gz nextcloud-server-52e31405f7848e4fd9f9d19297bbb87facb09376.zip |
Added timeout value to WebDAV post setup check
Fixes #5357
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/private/util.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/util.php b/lib/private/util.php index 6c0a8d7bab5..43f2c9bb635 100755 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -806,7 +806,9 @@ class OC_Util { 'baseUri' => OC_Helper::linkToRemote('webdav'), ); - $client = new \Sabre_DAV_Client($settings); + $client = new \OC_DAVClient($settings); + + $client->setRequestTimeout(10); // for this self test we don't care if the ssl certificate is self signed and the peer cannot be verified. $client->setVerifyPeer(false); |