[BUGFIX][FAL] isValidFilename() fails with broken PCRE
authorChristian Kuhn <lolli@schwarzbu.ch>
Fri, 20 Jul 2012 12:22:50 +0000 (14:22 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 20 Jul 2012 13:54:43 +0000 (15:54 +0200)
commit4128aacb46fca8e788860470acbf7baba0a1030c
treedee65fd25a646f6529737650ad3caa4633c480d1
parent16375f4e446791d23cb8d9629df219f440d8756a
[BUGFIX][FAL] isValidFilename() fails with broken PCRE

Some php versions like debian squeeze 5.3.3 do not have proper unicode
support for PCRE enabled. In effect, character classes like [:alnum:]
do not contain unicode characters. Therefore, test
filenamesAreCorrectlyValidated with data set "filename with german
umlauts" fails on those systems.

The patch changes the according regex in t3lib_file_Driver_AbstractDriver
to other, fully supported character classes.

Change-Id: I49c9c2488536577ba77c5065e96a5ef4859e03da
Fixes: #39123
Releases: 6.0
Reviewed-on: http://review.typo3.org/12924
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Daniel Lorenz
Tested-by: Daniel Lorenz
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
t3lib/file/Driver/AbstractDriver.php
tests/Unit/t3lib/file/Driver/AbstractDriverTest.php