Project

General

Profile

Actions

Bug #45221

closed

Images with whitespaces in their names are not stored correctly in _processed_

Added by Christian Futterlieb about 11 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2013-02-06
Due date:
% Done:

0%

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

Description

As of TYPO3 version 6.0.1, images with whitespaces in their names are not correct referenced in the output, because the image src arribute contains the whitespaces (as '%20') but the processed file is stored with underlines.

Example (assuming the image is wider than 50px):

page.5 = IMAGE
page.5.file = fileadmin/My Image.jpg
page.5.file.maxW = 50

will produce following img tag:

<img src="typo3temp/_processed_/My%20Image.jpg" width=50" ... />

but the image itself is stored as

typo3temp/_processed_/csm_My_Image{$hash}.jpg

I did not dig too deep into this problem because I'm not familar with FAL (yet ;)). I just saw, that the TYPO3\CMS\Core\Resource\Driver\LocalDriver calls its method sanitizeFileName() before adding the file in the method addFile(). This is new since 6.0.1.

Thanks for taking care of this one!


Files


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #42925: File-Upload does not sanitize umlauts in filenamesClosed2012-11-13

Actions
Related to TYPO3 Core - Bug #47140: ProcessedFile/Thumbnail is always regeneratedClosedOliver Hader2013-04-11

Actions
Has duplicate TYPO3 Core - Bug #45694: space in filenameClosed2013-02-21

Actions
Actions

Also available in: Atom PDF