Project

General

Profile

Actions

Bug #21260

closed

Spaces in Webroot path break ImageMagick compose

Added by Jörg Wagner about 15 years ago. Updated about 6 years ago.

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

0%

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

Description

Install Tool -> Image Processing -> Combining images
shows all masks inverted if webroot path contains breaks.
Tested with GraphicsMagick on Windows only but is probably true for IM and Linux too.

Function unQuoteFilenames() in t3lib/class.t3lib_div explodes the parameter string by blanks but tries to do a kind of CVS explode that honors quotes within the parameter string and does not explode quoted params if they contain blanks.
This function works correct, but it does not return an array with continuously numbered indices. Function imageMagickCommand() in turn expects an evenly numbered array when it tries to exchange the last but third and last but second elements (-4th and -3rd element) of the exploded array in block if(count($paramsArr)>5)...

The solution is simple:
Change the last line of function unQuoteFilenames() from
return $paramsArr;
to
return array_values($paramsArr);
This reindexes the returned array with continous indices and solves the problem. Patch appended.

Cheers, Jörg.
(issue imported from #M12218)


Files

patch.diff (531 Bytes) patch.diff Administrator Admin, 2009-10-13 09:17
Actions

Also available in: Atom PDF