diff options
Diffstat (limited to 'include/functions.php')
-rwxr-xr-x | include/functions.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php index 1d83a41da..24c251bd3 100755 --- a/include/functions.php +++ b/include/functions.php @@ -437,6 +437,14 @@ curl_close($ch); + $is_gzipped = RSSUtils::is_gzipped($contents); + + if ($is_gzipped) { + $tmp = @gzdecode($contents); + + if ($tmp) $contents = $tmp; + } + return $contents; } else { @@ -522,6 +530,15 @@ return false; } + + $is_gzipped = RSSUtils::is_gzipped($data); + + if ($is_gzipped) { + $tmp = @gzdecode($data); + + if ($tmp) $data = $tmp; + } + return $data; } |