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:
Diffstat (limited to 'core/Http.php')
-rw-r--r--core/Http.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Http.php b/core/Http.php
index b3706b2b82..4377ebac7a 100644
--- a/core/Http.php
+++ b/core/Http.php
@@ -8,6 +8,7 @@
*/
namespace Piwik;
+use Composer\CaBundle\CaBundle;
use Exception;
/**
@@ -912,7 +913,7 @@ class Http
if (!empty($general['custom_cacert_pem'])) {
$cacertPath = $general['custom_cacert_pem'];
} else {
- $cacertPath = PIWIK_INCLUDE_PATH . '/core/DataFiles/cacert.pem';
+ $cacertPath = CaBundle::getBundledCaBundlePath();
}
@curl_setopt($ch, CURLOPT_CAINFO, $cacertPath);
}