Issue Bug Closed

#67061Upload of files with "Umlaute" is not possible for non-admins when utf8 filesystem is enabled

Nils Blattner 05/20/15, 16:09 updated 05/07/19, 12:17

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:
  1. $GLOBALS[‘TYPO3_CONF_VARS’][‘SYS’][‘UTF8filesystem’] = 1;
  2. Leave $GLOBALS[‘TYPO3_CONF_VARS’][‘BE’][‘fileDenyPattern’] as default
  3. Switch to non-admin user
  4. Upload a file with special characters in the file name (äöüéàè etc.)

Kind regards
Nils

Reviews 3