Project

General

Profile

Actions

Bug #21165

closed

Filenames should be escaped with escapeshellarg before passing them to imagemagick

Added by Helmut Hummel about 15 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2009-09-30
Due date:
% Done:

0%

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

Description

The problem lies in class.t3lib_stdgraphic.php::wrapFileName() with is
supposed to wrap a filename into double quotes.
Unfortunately it does this task only, if it finds a space character
in the filename. Other special characters which are not allowed on
the shell are not treated.

The better option would be to use escapeshellarg() provided by PHP.

Reported by: Christian Welzel
OTRS ID: 2009080710000036
(issue imported from #M12090)


Files

12090_41.diff (891 Bytes) 12090_41.diff Administrator Admin, 2009-10-07 19:59
12090_trunk.diff (3.7 KB) 12090_trunk.diff Administrator Admin, 2009-10-07 20:03
12090_42.diff (1.02 KB) 12090_42.diff Administrator Admin, 2009-10-07 20:03
12090_trunk-v2.diff (1.46 KB) 12090_trunk-v2.diff Administrator Admin, 2009-10-22 11:32
comments.diff (571 Bytes) comments.diff Administrator Admin, 2009-10-22 11:48
12090_followup_trunk_and_42.diff (824 Bytes) 12090_followup_trunk_and_42.diff Administrator Admin, 2009-10-22 13:30
12090_followup_41.diff (842 Bytes) 12090_followup_41.diff Administrator Admin, 2009-10-22 13:30

Related issues 3 (0 open3 closed)

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

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

Actions
Related to TYPO3 Core - Bug #21087: If safe_mode is enabled, thumb generation fails for file with "&" in filenameClosed2009-09-18

Actions
Actions

Also available in: Atom PDF