summaryrefslogtreecommitdiff
path: root/classes/rssutils.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-21 17:52:41 +0300
committerAndrew Dolgov <[email protected]>2018-12-21 17:52:41 +0300
commiteedd402807aef9a26b47acb4126453c32ff46163 (patch)
tree481b85f5201ea774109e1bd9aaed5a951f04bb44 /classes/rssutils.php
parenta5517fe857535163d5989778108fd9d7eb891707 (diff)
rssutils: don't gzdecode() stuff
Diffstat (limited to 'classes/rssutils.php')
-rwxr-xr-xclasses/rssutils.php26
1 files changed, 0 insertions, 26 deletions
diff --git a/classes/rssutils.php b/classes/rssutils.php
index 28bdda78b..553d04561 100755
--- a/classes/rssutils.php
+++ b/classes/rssutils.php
@@ -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);