Merge pull request #13908 from MrPetovan/bug/warnings

Avoid passing null bytes in regular expression in Object\Image
This commit is contained in:
Michael Vogel 2024-02-18 05:33:41 +01:00 committed by GitHub
commit 4eefd0a205
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -100,7 +100,7 @@ class Image
}
if ($this->imageType == IMAGETYPE_GIF) {
$count = @preg_match_all("#\x00\x21\xF9\x04.{4}\x00(\x2C|\x21)#s", $data);
$count = preg_match_all("#\\x00\\x21\\xF9\\x04.{4}\\x00[\\x2C\\x21]#s", $data);
return ($count > 0);
}