Skip to content
Snippets Groups Projects
Commit bd93722e authored by Lukas Reschke's avatar Lukas Reschke
Browse files

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.
parent 0e687993
No related branches found
No related tags found
No related merge requests found
...@@ -445,6 +445,7 @@ class Google extends \OC\Files\Storage\Common { ...@@ -445,6 +445,7 @@ class Google extends \OC\Files\Storage\Common {
$client->get($downloadUrl, [ $client->get($downloadUrl, [
'headers' => $httpRequest->getRequestHeaders(), 'headers' => $httpRequest->getRequestHeaders(),
'save_to' => $tmpFile, 'save_to' => $tmpFile,
'verify' => __DIR__ . '/../3rdparty/google-api-php-client/src/Google/IO/cacerts.pem',
]); ]);
} catch (RequestException $e) { } catch (RequestException $e) {
if(!is_null($e->getResponse())) { if(!is_null($e->getResponse())) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment