Project

General

Profile

Actions

Bug #67061

closed

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

Added by Nils Blattner almost 9 years ago. Updated almost 5 years ago.

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:
  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


Files

20150520-GeneralUtility.php.diff (729 Bytes) 20150520-GeneralUtility.php.diff Nils Blattner, 2015-05-20 16:09

Related issues 2 (0 open2 closed)

Has duplicate TYPO3 Core - Bug #77516: verifyFilenameAgainstDenyPattern not UTF-8 saveClosed2016-08-16

Actions
Has duplicate TYPO3 Core - Bug #85384: verifyFilenameAgainstDenyPattern doesn´t work with UTF-8 strings in CommandClosed2018-06-25

Actions
Actions

Also available in: Atom PDF