Actions
Bug #67061
closedUpload of files with "Umlaute" is not possible for non-admins when utf8 filesystem is enabled
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2015-05-20
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:
Description
Hi there
When a non-admin tries to upload a file with special characters in the name (e.g. täst.txt) and $GLOBALS['TYPO3_CONF_VARS']['SYS']['UTF8filesystem'] is active, the upload fails. This is because the default "fileDenyPattern" is not applied with the PCRE "u" option in GeneralUtility::verifyFilenameAgainstDenyPattern().
This can be fixed by making those two patterns PCRE_UTF8 /.../u.
Steps to reproduce:- $GLOBALS['TYPO3_CONF_VARS']['SYS']['UTF8filesystem'] = 1;
- Leave $GLOBALS['TYPO3_CONF_VARS']['BE']['fileDenyPattern'] as default
- Switch to non-admin user
- Upload a file with special characters in the file name (äöüéàè etc.)
Kind regards
Nils
Files
Actions