mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-12-07 05:51:00 +01:00
rssutils: don't gzdecode() stuff
This commit is contained in:
parent
a5517fe857
commit
eedd402807
@ -256,18 +256,6 @@ class RSSUtils {
|
||||
FEED_FETCH_TIMEOUT,
|
||||
0);
|
||||
|
||||
global $fetch_curl_used;
|
||||
|
||||
if (!$fetch_curl_used) {
|
||||
$is_gzipped = RSSUtils::is_gzipped($feed_data);
|
||||
|
||||
if ($is_gzipped) {
|
||||
$tmp = @gzdecode($feed_data);
|
||||
|
||||
if ($tmp) $feed_data = $tmp;
|
||||
}
|
||||
}
|
||||
|
||||
$feed_data = trim($feed_data);
|
||||
|
||||
$rss = new FeedParser($feed_data);
|
||||
@ -434,20 +422,6 @@ class RSSUtils {
|
||||
"last_modified" => $force_refetch ? "" : $stored_last_modified
|
||||
]);
|
||||
|
||||
global $fetch_curl_used;
|
||||
|
||||
if (!$fetch_curl_used) {
|
||||
$is_gzipped = RSSUtils::is_gzipped($feed_data);
|
||||
|
||||
Debug::log("is_gzipped: $is_gzipped", Debug::$LOG_VERBOSE);
|
||||
|
||||
if ($is_gzipped) {
|
||||
$tmp = @gzdecode($feed_data);
|
||||
|
||||
if ($tmp) $feed_data = $tmp;
|
||||
}
|
||||
}
|
||||
|
||||
$feed_data = trim($feed_data);
|
||||
|
||||
Debug::log("fetch done.", Debug::$LOG_VERBOSE);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user