]> git.wh0rd.org - tt-rss.git/blobdiff - include/rssfuncs.php
updates: auto-disable CURL if open_basedir is enabled, notify possible issues w/...
[tt-rss.git] / include / rssfuncs.php
index ad956cd2a587e073cc2289ff3990415e11f9ab72..fcecbf67069cf001e41da834513bab359734b2e0 100755 (executable)
                        // 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,