cosmetics

This commit is contained in:
Jean-Christian Denis 2021-11-05 00:46:25 +01:00
parent c32ece6a5e
commit eed3736534
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951

View file

@ -79,12 +79,12 @@ class tweakStoresBehaviors
try { try {
if (function_exists('curl_init')) { if (function_exists('curl_init')) {
$ch = curl_init(); $ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_URL, $modules[$_POST['checkxml_id']]['repository']); curl_setopt($ch, CURLOPT_URL, $modules[$_POST['checkxml_id']]['repository']);
curl_setopt($ch, CURLOPT_REFERER, $modules[$_POST['checkxml_id']]['repository']); curl_setopt($ch, CURLOPT_REFERER, $modules[$_POST['checkxml_id']]['repository']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$file_content = curl_exec($ch); $file_content = curl_exec($ch);
curl_close($ch); curl_close($ch);
} else { } else {