Fixed bug #3299 (Language pack installation cannot handle spaces in filenames).
[Packages/TYPO3.CMS.git] / typo3 / mod / tools / em / class.em_index.php
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 {