Skip to content
Permalink
Browse files

Fixed an error with curl and openbasedir

  • Loading branch information...
GodMod committed Mar 10, 2019
1 parent e932eec commit 162416ebca820017804f7bc619f65df4fb50a25a
Showing with 3 additions and 2 deletions.
  1. +3 −2 core/urlfetcher.class.php
@@ -200,13 +200,14 @@ private function get_curl($geturl, $header, $conn_timeout, $timeout, $blnIgnoreR
$curl_error = curl_errno($curl);
$this->pdl->log('urlfetcher', 'Curl Error Nr. '.$curl_error);
$this->pdl->log('urlfetcher', 'Curl Info: '.print_r($curl_error, true));
curl_close($curl);
//Remove Header
$header_size = curl_getinfo($curl, CURLINFO_HEADER_SIZE);
$header = substr($getdata, 0, $header_size);
$page = substr($getdata, $header_size);
curl_close($curl);
#list ($header,$page) = preg_split('/\r\n\r\n/',$getdata,2);
$this->responseStatus = (intval($code) >= 400) ? false : true;

0 comments on commit 162416e

Please sign in to comment.
You can’t perform that action at this time.