Skip to content
Snippets Groups Projects
Commit b1ccadba authored by hahn's avatar hahn
Browse files

- 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
parent 22704e94
No related branches found
No related tags found
No related merge requests found
<?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.
*/
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment