From 3f6f085769de4df84e831eefb767c4cdbfb7c64b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 18 Apr 2013 11:35:58 +0400 Subject: add better gzdecode support for php native fetch, use curl under open_basedir --- include/rssfuncs.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/rssfuncs.php') diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 537a4c338..494e050a6 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -304,6 +304,14 @@ $no_cache ? FEED_FETCH_NO_CACHE_TIMEOUT : FEED_FETCH_TIMEOUT, $force_refetch ? 0 : max($last_updated_timestamp, $cache_timestamp)); + global $fetch_curl_used; + + if (!$fetch_curl_used) { + $tmp = @gzdecode($feed_data); + + if ($tmp) $feed_data = $tmp; + } + if ($debug_enabled) { _debug("update_rss_feed: fetch done."); } -- cgit v1.2.3