mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-22 07:11:29 +00:00
is_gzipped: don't try to strpos() over entire buffer
This commit is contained in:
@@ -1551,7 +1551,8 @@ class RSSUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static function is_gzipped($feed_data) {
|
static function is_gzipped($feed_data) {
|
||||||
return mb_strpos($feed_data, "\x1f" . "\x8b" . "\x08", 0, "US-ASCII") === 0;
|
return strpos(substr($feed_data, 0, 3),
|
||||||
|
"\x1f" . "\x8b" . "\x08", 0) === 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static function load_filters($feed_id, $owner_uid) {
|
static function load_filters($feed_id, $owner_uid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user