Commit d13fa5d2 authored by Imran Hussain's avatar Imran Hussain

Merge branch 'master' into 'beta'

Push "Disable cert checking when talking to the SU-API" onto beta

Push "Disable cert checking when talking to the SU-API onto" beta

See merge request !14
parents 6d4a65e5 0758bd46
......@@ -38,6 +38,8 @@ if (isset($session->groups[$permission])) {
$apiReq = curl_init();
curl_setopt($apiReq, CURLOPT_URL, $url);
curl_setopt($apiReq, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($apiReq, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($apiReq, CURLOPT_SSL_VERIFYHOST, false);
$apiResult = curl_exec($apiReq);
if ($apiResult === FALSE) {
......@@ -171,6 +173,8 @@ if (isset($session->groups[$permission])) {
$apiReq = curl_init();
curl_setopt($apiReq, CURLOPT_URL, $url);
curl_setopt($apiReq, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($apiReq, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($apiReq, CURLOPT_SSL_VERIFYHOST, false);
$apiResult = curl_exec($apiReq);
libxml_use_internal_errors(true);
......@@ -207,6 +211,8 @@ if (isset($session->groups[$permission])) {
$apiReq = curl_init();
curl_setopt($apiReq, CURLOPT_URL, $url);
curl_setopt($apiReq, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($apiReq, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($apiReq, CURLOPT_SSL_VERIFYHOST, false);
$apiResult = curl_exec($apiReq);
$sumembers = su_response_decode($apiResult);
......@@ -260,6 +266,8 @@ if (isset($session->groups[$permission])) {
$apiReq = curl_init();
curl_setopt($apiReq, CURLOPT_URL, $url);
curl_setopt($apiReq, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($apiReq, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($apiReq, CURLOPT_SSL_VERIFYHOST, false);
$apiResult = curl_exec($apiReq);
$sumembers = su_response_decode($apiResult);
......
......@@ -34,6 +34,8 @@ if(!empty($_REQUEST['sid'])&&!empty($_REQUEST['transactionID'])){
curl_setopt($ch,CURLOPT_POST,count($fields));
curl_setopt($ch,CURLOPT_POSTFIELDS,$fields_string);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,TRUE);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
//execute post
$result = curl_exec($ch);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment