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:
@@ -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.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user