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

[stable9] Use the shipped cacerts.pem instead of the global one
This commit is contained in:
Thomas Müller 2016-03-30 18:41:36 +02:00
commit 03f89d8242
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())) {