Commit 7228d00b authored by Bas de Nooijer's avatar Bas de Nooijer

Fix #224

parent b60d7f95
...@@ -145,7 +145,9 @@ class Curl extends Configurable implements AdapterInterface ...@@ -145,7 +145,9 @@ class Curl extends Configurable implements AdapterInterface
$handler = curl_init(); $handler = curl_init();
curl_setopt($handler, CURLOPT_URL, $uri); curl_setopt($handler, CURLOPT_URL, $uri);
curl_setopt($handler, CURLOPT_RETURNTRANSFER, true); curl_setopt($handler, CURLOPT_RETURNTRANSFER, true);
curl_setopt($handler, CURLOPT_FOLLOWLOCATION, true); if (!ini_get('open_basedir')) {
curl_setopt($handler, CURLOPT_FOLLOWLOCATION, true);
}
curl_setopt($handler, CURLOPT_TIMEOUT, $options['timeout']); curl_setopt($handler, CURLOPT_TIMEOUT, $options['timeout']);
if ($proxy = $this->getOption('proxy')) { if ($proxy = $this->getOption('proxy')) {
......
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