[BUGFIX] Allow unicode characters in verifyFileNameAgainstDenyPattern 72/58772/2
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:44:29 +0000 (17:44 +0100)
commit1398fe40e8dee8e7339b71341b350967434c6a0b
tree4c99ae5669dea84f5ae4a38cd30cf0aa56ba36a8
parentef2160bc6e970721f8cac332030a465fd629d19a
[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/58772
Tested-by: TYPO3com <no-reply@typo3.com>
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