1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-22 15:01:29 +00:00

fetch_file_contents: decompress gzipped data

af_readability: remove utf8 preamble hack
This commit is contained in:
Andrew Dolgov
2018-12-21 17:50:16 +03:00
parent 782eda45db
commit a5517fe857
3 changed files with 20 additions and 2 deletions

View File

@@ -1612,7 +1612,7 @@ class RSSUtils {
}
}
private static function is_gzipped($feed_data) {
static function is_gzipped($feed_data) {
return mb_strpos($feed_data, "\x1f" . "\x8b" . "\x08", 0, "US-ASCII") === 0;
}