Fixed bug #3299 (Language pack installation cannot handle spaces in filenames).
authorKarsten Dambekalns <karsten.dambekalns@typo3.org>
Thu, 13 Jul 2006 21:25:57 +0000 (21:25 +0000)
committerKarsten Dambekalns <karsten.dambekalns@typo3.org>
Thu, 13 Jul 2006 21:25:57 +0000 (21:25 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@1635 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/mod/tools/em/class.em_index.php

index 864b514..57ec46b 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-07-13 Karsten Dambekalns <karsten@typo3.org>
+
+       * EM: Fixed bug #3299 (Language pack installation cannot handle spaces in filenames)
+
 2006-07-13 Wolfgang Klinger <wk@plan2.net>
 
        * Fixing some missing is_array checks
index 9556d02..9ad9e03 100644 (file)
@@ -1294,7 +1294,7 @@ EXTENSION KEYS:
        function unzip($file, $path) {
                if(strlen($GLOBALS['TYPO3_CONF_VARS']['BE']['unzip_path'])) {
                        chdir($path);
-                       $cmd = $GLOBALS['TYPO3_CONF_VARS']['BE']['unzip_path'].' -o '.$file;
+                       $cmd = $GLOBALS['TYPO3_CONF_VARS']['BE']['unzip_path'].' -o '.escapeshellarg($file);
                        exec($cmd, $list, $ret);
                        return ($ret === 0);
                } else {