]> git.mxchange.org Git - friendica.git/commit
Avoid passing null bytes in regular expression in Object\Image
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 18 Feb 2024 03:27:37 +0000 (22:27 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 18 Feb 2024 03:27:37 +0000 (22:27 -0500)
commit1956c2ecfd9513892a1547a62976dc05bc2c2cc4
tree8153c2ecfe04252276f78223e335e2de402d5b3c
parent08fa51d0bb9ea1f66fbfc0ced2c2b09418695246
Avoid passing null bytes in regular expression in Object\Image

- Remove capturing expression for A|B in favor of bracket syntax in regular expression since matches aren't used.
- Regular expressions have their own character escape notation including backslashes that need to be escaped in a PHP string.
- Actually address https://github.com/friendica/friendica/issues/13761#issuecomment-1949930922
src/Object/Image.php