We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 583d83b + 29bb39d commit 2cf6f25Copy full SHA for 2cf6f25
src/PHPHtmlParser/Curl.php
@@ -15,7 +15,11 @@ class Curl implements CurlInterface {
15
public function get($url)
16
{
17
$ch = curl_init($url);
18
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
+
19
+ if(!ini_get('open_basedir')) {
20
+ curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
21
+ }
22
23
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
24
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
25
0 commit comments