From b1ccadba8cfea06bfa0c11e588aa5f002fbee239 Mon Sep 17 00:00:00 2001 From: hahn <hahn@AAE49.campus.unibe.ch> Date: Fri, 19 Sep 2014 08:46:10 +0200 Subject: [PATCH] - fix vcs.git.class: url is not required field in project settings - fix project.class: fetch json with curl http get request (new dependency: php5-curl) - fix project.class: curl does not verify ssl certificate anymore --- newEmptyPHP.php | 8 ++++++++ public_html/deployment/classes/project.class.php | 1 + 2 files changed, 9 insertions(+) create mode 100644 newEmptyPHP.php diff --git a/newEmptyPHP.php b/newEmptyPHP.php new file mode 100644 index 00000000..fb9e0c3d --- /dev/null +++ b/newEmptyPHP.php @@ -0,0 +1,8 @@ +<?php + +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ + diff --git a/public_html/deployment/classes/project.class.php b/public_html/deployment/classes/project.class.php index 1014a40a..aab3c19d 100644 --- a/public_html/deployment/classes/project.class.php +++ b/public_html/deployment/classes/project.class.php @@ -407,6 +407,7 @@ class project { } $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_TIMEOUT, $iTimeout); $res = curl_exec($ch); curl_close($ch); -- GitLab