mirror of
https://github.com/friendica/friendica
synced 2025-01-06 12:44:43 +00:00
Merge pull request #13908 from MrPetovan/bug/warnings
Avoid passing null bytes in regular expression in Object\Image
This commit is contained in:
commit
4eefd0a205
1 changed files with 3 additions and 3 deletions
|
@ -100,7 +100,7 @@ class Image
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->imageType == IMAGETYPE_GIF) {
|
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);
|
return ($count > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue