diff --git a/CareerDev.php b/CareerDev.php index e6578f18..5ac5eff2 100644 --- a/CareerDev.php +++ b/CareerDev.php @@ -9,7 +9,7 @@ class CareerDev { public static $passedModule = NULL; public static function getVersion() { - return "2.25.12"; + return "2.25.13"; } public static function getLockFile($pid) { diff --git a/classes/Upload.php b/classes/Upload.php index 600511ae..a5ff6d12 100644 --- a/classes/Upload.php +++ b/classes/Upload.php @@ -127,6 +127,8 @@ public static function deleteRecords($token, $server, $records) { curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); curl_setopt($ch, CURLOPT_FRESH_CONNECT, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data, '', '&')); + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $output = curl_exec($ch); $feedback = json_decode($output, TRUE); self::testFeedback($feedback, $output, $ch); @@ -163,7 +165,9 @@ public static function metadata($metadata, $token, $server) { curl_setopt($ch, CURLOPT_MAXREDIRS, 10); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); curl_setopt($ch, CURLOPT_FRESH_CONNECT, 1); - curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data, '', '&')); + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data, '', '&')); $output = curl_exec($ch); $feedback = json_decode($output, TRUE); self::testFeedback($feedback, $output, $ch, $metadata); @@ -265,7 +269,9 @@ public static function projectSettings($settings, $token, $server) { curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); curl_setopt($ch, CURLOPT_FRESH_CONNECT, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data, '', '&')); - $output = curl_exec($ch); + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + $output = curl_exec($ch); $feedback = json_decode($output, TRUE); self::testFeedback($feedback, $output, $ch, $settings); curl_close($ch); @@ -419,7 +425,9 @@ public static function rows($rows, $token, $server) { curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); curl_setopt($ch, CURLOPT_FRESH_CONNECT, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data, '', '&')); - $time2 = microtime(TRUE); + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + $time2 = microtime(TRUE); $output = curl_exec($ch); $feedback = json_decode($output, true); self::testFeedback($feedback, $output, $ch, $rows);