Project

General

Profile

Actions

Bug #21087

closed

If safe_mode is enabled, thumb generation fails for file with "&" in filename

Added by anselm over 14 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2009-09-18
Due date:
% Done:

0%

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

Description

When trying to view a thumb for a file with an ampersand in the filename, it shows the default "no thumb generated" image.

I appended a screenshot that shows this error in the DAM-Edit window.

I guess in t3lib/thumbs.php, wrapFileName() should escape the filename with escapeshellarg instead of just wrapping it with quotes.

[added by Olly]
Seems like this occurs in all TYPO3 versions
http://forge.typo3.org/repositories/revision/typo3v4-core/6258
http://forge.typo3.org/repositories/revision/typo3v4-core/6259
http://forge.typo3.org/repositories/revision/typo3v4-core/6260
(issue imported from #M11993)


Files

nothumb.JPG (24 KB) nothumb.JPG Administrator Admin, 2009-09-18 11:44
thumbs.php.patch (530 Bytes) thumbs.php.patch Administrator Admin, 2009-09-23 15:05

Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Bug #21165: Filenames should be escaped with escapeshellarg before passing them to imagemagickClosedErnesto Baschny2009-09-30

Actions
Related to TYPO3 Core - Bug #21609: Problem with german "Umlaute" in BE file list, no thumbs generatedClosedJigal van Hemert2009-11-18

Actions
Has duplicate TYPO3 Core - Bug #21357: Thumbnail generation brokenClosedOliver Hader2009-10-25

Actions
Has duplicate TYPO3 Core - Bug #21360: Image Generation broken with PHP safe_mode = On / GraphicsmagickClosedBenni Mack2009-10-26

Actions
Actions

Also available in: Atom PDF