summaryrefslogtreecommitdiff
path: root/include/rssfuncs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2016-01-13 18:12:31 +0300
committerAndrew Dolgov <[email protected]>2016-01-13 18:12:31 +0300
commit312742db6efc22a844a5f0a9d95f0282722354dc (patch)
tree7dd2a3400daafb69491c1fe61f1f24cbda1f9c39 /include/rssfuncs.php
parent393fc7d6b5e634c9618dac415252eaf40939cf31 (diff)
updates: auto-disable CURL if open_basedir is enabled, notify possible issues w/ plugins
Diffstat (limited to 'include/rssfuncs.php')
-rwxr-xr-xinclude/rssfuncs.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index ad956cd2a..fcecbf670 100755
--- a/include/rssfuncs.php
+++ b/include/rssfuncs.php
@@ -399,6 +399,11 @@
// fetch feed from source
if (!$feed_data) {
_debug("fetching [$fetch_url]...", $debug_enabled);
+
+ if (ini_get("open_basedir") && function_exists("curl_init")) {
+ _debug("not using CURL due to open_basedir restrictions");
+ }
+
_debug("If-Modified-Since: ".gmdate('D, d M Y H:i:s \G\M\T', $last_article_timestamp), $debug_enabled);
$feed_data = fetch_file_contents($fetch_url, false,