mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-26 17:31:07 +01:00
Rector rule 'StrStartsWithRector'.
https://getrector.com/rule-detail/str-starts-with-rector
This commit is contained in:
parent
77c9098dd3
commit
b30ce92d58
@ -1809,8 +1809,7 @@ class RSSUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static function is_gzipped(string $feed_data): bool {
|
static function is_gzipped(string $feed_data): bool {
|
||||||
return strpos(substr($feed_data, 0, 3),
|
return str_starts_with(substr($feed_data, 0, 3), "\x1f" . "\x8b" . "\x08");
|
||||||
"\x1f" . "\x8b" . "\x08", 0) === 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user