diff options
author | Lukas Reschke <lukas@owncloud.com> | 2016-03-30 16:55:26 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2016-03-30 16:58:39 +0200 |
commit | bd93722e1251cb6676daf1c05d3bfd261d791386 (patch) | |
tree | 9dae950eb0f18adb9a120ab11f9ccb4edd3aa14f /apps/files_external/lib/google.php | |
parent | 0e687993c8afb36876e7d90c229b97b4aaf43b70 (diff) | |
download | nextcloud-server-bd93722e1251cb6676daf1c05d3bfd261d791386.tar.gz nextcloud-server-bd93722e1251cb6676daf1c05d3bfd261d791386.zip |
Use the shipped cacerts.pem instead of the global one
The one we ship may cause problems since Equifax is not included anymore (SHA-1 certs) are deprecated. We should just be consistent here and also use the certificate file which is used by the other calls in the library.
Diffstat (limited to 'apps/files_external/lib/google.php')
-rw-r--r-- | apps/files_external/lib/google.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_external/lib/google.php b/apps/files_external/lib/google.php index b79f42d1e00..91e7dfee08d 100644 --- a/apps/files_external/lib/google.php +++ b/apps/files_external/lib/google.php @@ -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())) { |