X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=plugins%2Faf_unburn%2Finit.php;h=67939f80e35d5529e41018b0d72253c90fbef0df;hb=6322ac79a020ab584d412d782d62b2ee77d7c6cf;hp=9f0b6cb0d8d4717d05244ce407f127f3f6cec68f;hpb=81153e6b8bdf3761ebe805ae9622a305d001a786;p=tt-rss.git diff --git a/plugins/af_unburn/init.php b/plugins/af_unburn/init.php index 9f0b6cb0..67939f80 100644 --- a/plugins/af_unburn/init.php +++ b/plugins/af_unburn/init.php @@ -1,7 +1,5 @@ link = $host->get_link(); $this->host = $host; $host->add_hook($host::HOOK_ARTICLE_FILTER, $this); @@ -29,7 +26,7 @@ class Af_Unburn extends Plugin { if (strpos($article["plugin_data"], "unburn,$owner_uid:") === FALSE) { - if (ini_get("safe_mode")) { + if (ini_get("safe_mode") || ini_get("open_basedir")) { $ch = curl_init(geturl($article["link"])); } else { $ch = curl_init($article["link"]); @@ -38,7 +35,7 @@ class Af_Unburn extends Plugin { curl_setopt($ch, CURLOPT_TIMEOUT, 5); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, true); - curl_setopt($ch, CURLOPT_FOLLOWLOCATION, !ini_get("safe_mode")); + curl_setopt($ch, CURLOPT_FOLLOWLOCATION, !ini_get("safe_mode") && !ini_get("open_basedir")); curl_setopt($ch, CURLOPT_USERAGENT, SELF_USER_AGENT); $contents = @curl_exec($ch);