diff options
Diffstat (limited to 'include')
-rwxr-xr-x | include/functions.php | 2 | ||||
-rwxr-xr-x | include/rssfuncs.php | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php index b928a030d..b558b0e6c 100755 --- a/include/functions.php +++ b/include/functions.php @@ -347,7 +347,7 @@ if (strpos($url, "//") === 0) $url = 'http:' . $url; - if (!defined('NO_CURL') && function_exists('curl_init')) { + if (!defined('NO_CURL') && function_exists('curl_init') && !ini_get("open_basedir")) { $fetch_curl_used = true; 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, |