Project

General

Profile

Actions

Bug #85384

closed

verifyFilenameAgainstDenyPattern doesn´t work with UTF-8 strings in Command

Added by Pascal Rinker almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
CLI
Target version:
-
Start date:
2018-06-25
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The pattern inside GeneralUtility::verifyFilenameAgainstDenyPattern should have set the u flag to trade pattern and subject as UTF-8.

You can reproduce this problem by adding a symfony command with the following example code inside the execute() method:

$result will be FALSE with the default deny pattern from TYPO3

$result = GeneralUtility::verifyFilenameAgainstDenyPattern('KÖLSCH.jpg');
var_dump($result);

$result will be TRUE with the default deny pattern from TYPO3

$result = GeneralUtility::verifyFilenameAgainstDenyPattern('KOELSCH.jpg');
var_dump($result);

Adding the u flag to the pattern solves the problem.

My test system was macOS 10.13 with PHP 7.2.4 installed via brew.


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #67061: Upload of files with "Umlaute" is not possible for non-admins when utf8 filesystem is enabledClosed2015-05-20

Actions
Actions #1

Updated by Gerrit Code Review almost 6 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57367

Actions #2

Updated by Mathias Brodala almost 6 years ago

  • Is duplicate of Bug #67061: Upload of files with "Umlaute" is not possible for non-admins when utf8 filesystem is enabled added
Actions #3

Updated by Mathias Brodala almost 6 years ago

  • Status changed from Under Review to Closed

See #67061

Actions

Also available in: Atom PDF