Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2016-12-26 23:58:26 +0300
committermattab <matthieu.aubry@gmail.com>2016-12-27 00:00:12 +0300
commita54fc308012581176aad8d515aeb9b41668335d2 (patch)
tree6ef4c088d592f26a88d918fb7efe9babb9fb4b82 /core/Http.php
parentdb6cf994c2314dd568e5ef642c80b9025a1e9098 (diff)
curl http connections: always load cacert.pem since it's always available
Diffstat (limited to 'core/Http.php')
-rw-r--r--core/Http.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/Http.php b/core/Http.php
index 79ee0d2af3..48e1fa14fa 100644
--- a/core/Http.php
+++ b/core/Http.php
@@ -792,9 +792,7 @@ class Http
*/
public static function configCurlCertificate(&$ch)
{
- if (file_exists(PIWIK_INCLUDE_PATH . '/core/DataFiles/cacert.pem')) {
- @curl_setopt($ch, CURLOPT_CAINFO, PIWIK_INCLUDE_PATH . '/core/DataFiles/cacert.pem');
- }
+ @curl_setopt($ch, CURLOPT_CAINFO, PIWIK_INCLUDE_PATH . '/core/DataFiles/cacert.pem');
}
public static function getUserAgent()