[BUGFIX] Allow unicode characters in verifyFileNameAgainstDenyPattern 89/57389/6
authorPascal Rinker <info@crynton.com>
Mon, 25 Jun 2018 14:43:32 +0000 (16:43 +0200)
committerBenni Mack <benni@typo3.org>
Sun, 28 Oct 2018 16:19:57 +0000 (17:19 +0100)
commit020d8cac4349663d551649644244723afefb594e
tree624625124483ab2ebc1720543c86794cb82bebe2
parent043030748d9971aa3645f3f35b8e0d901215310a
[BUGFIX] Allow unicode characters in verifyFileNameAgainstDenyPattern

Using (valid) unicode characters in
GeneralUtility::verifyFilenameAgainstDenyPattern was not possible due
to a missing unicode modifier when evaluating regular expressions.
The unicode modifier has been added.
Since unicode errors in regular expressions will lead to `false`
results, it is important to perform type-safe checks against `0`.

Resolves: #67061
Releases: master, 8.7
Change-Id: If3eea7129c92b296b85b93a1f1c81a446a2f5f90
Reviewed-on: https://review.typo3.org/57389
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/core/Classes/Utility/GeneralUtility.php
typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php