mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #14234 from nextcloud/fix/catch_requestexception
Catch Request exception in testRemoteUrl
This commit is contained in:
commit
1846bc37d7
1 changed files with 3 additions and 0 deletions
3
apps/files_sharing/lib/External/Storage.php
vendored
3
apps/files_sharing/lib/External/Storage.php
vendored
|
|
@ -32,6 +32,7 @@ namespace OCA\Files_Sharing\External;
|
|||
|
||||
use GuzzleHttp\Exception\ClientException;
|
||||
use GuzzleHttp\Exception\ConnectException;
|
||||
use GuzzleHttp\Exception\RequestException;
|
||||
use OC\Files\Storage\DAV;
|
||||
use OC\ForbiddenException;
|
||||
use OCA\Files_Sharing\ISharedStorage;
|
||||
|
|
@ -280,6 +281,8 @@ class Storage extends DAV implements ISharedStorage, IDisableEncryptionStorage {
|
|||
$returnValue = false;
|
||||
} catch (ClientException $e) {
|
||||
$returnValue = false;
|
||||
} catch (RequestException $e) {
|
||||
$returnValue = false;
|
||||
}
|
||||
|
||||
$cache->set($url, $returnValue, 60*60*24);
|
||||
|
|
|
|||
Loading…
Reference in a new issue