1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 23:15:55 +00:00

add better gzdecode support for php native fetch, use curl under open_basedir

This commit is contained in:
Andrew Dolgov
2013-04-18 11:35:58 +04:00
parent d0d86316ee
commit 3f6f085769
2 changed files with 20 additions and 4 deletions

View File

@@ -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.");
}