Merge pull request #23660 from owncloud/master-make-google-drive-drumpf-again

Use the shipped cacerts.pem instead of the global one
This commit is contained in:
Thomas Müller 2016-03-30 18:34:36 +02:00
commit 510e8db1ba
1 changed files with 1 additions and 0 deletions

View File

@ -445,6 +445,7 @@ class Google extends \OC\Files\Storage\Common {
$client->get($downloadUrl, [
'headers' => $httpRequest->getRequestHeaders(),
'save_to' => $tmpFile,
'verify' => __DIR__ . '/../3rdparty/google-api-php-client/src/Google/IO/cacerts.pem',
]);
} catch (RequestException $e) {
if(!is_null($e->getResponse())) {