Fixed bug #16656: ImageMagick does not work with quotes in exec() path on Windows
authorjigal <jigal@709f56b5-9817-0410-a4d7-c38de5d9e867>
Tue, 22 Feb 2011 22:17:26 +0000 (22:17 +0000)
committerjigal <jigal@709f56b5-9817-0410-a4d7-c38de5d9e867>
Tue, 22 Feb 2011 22:17:26 +0000 (22:17 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10556 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/utility/class.t3lib_utility_command.php

index 07bb253..a0c89a8 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-02-22  Jigal van Hemert  <jigal@xs4all.nl>
+
+       * Fixed bug #16656: ImageMagick does not work with quotes in exec() path on Windows
+
 2011-02-22  Stefan Galinski  <stefan.galinski@gmail.com>
 
        * Fixed bug #17483: GifBuilder - meaningfulTempFilePrefix can cause invalid image urls
index 8efa53d..87b6b79 100644 (file)
@@ -46,6 +46,9 @@ final class t3lib_utility_Command {
         * @return null|array
         */
        public static function exec($command, &$output = NULL, &$returnValue = 0) {
+               if (TYPO3_OS == 'WIN' && version_compare(phpversion(), '5.3.0', '<')) {
+                       $command = '"' . $command . '"';
+               }
                $lastLine = exec($command, $output, $returnValue);
                return $lastLine;
        }