From 688f6c4c720f8f79bb80213b1d6ce674630127cb Mon Sep 17 00:00:00 2001 From: "Scott J. Pearson" Date: Mon, 14 Dec 2020 14:48:35 -0600 Subject: [PATCH] 2.25.13 --- CareerDev.php | 2 +- classes/Upload.php | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) 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);