[BUGFIX] Wrong directory path checked while unzipping extension 96/41096/3
authorWouter Wolters <typo3@wouterwolters.nl>
Sat, 11 Jul 2015 12:29:18 +0000 (14:29 +0200)
committerHelmut Hummel <helmut.hummel@typo3.org>
Mon, 13 Jul 2015 09:43:02 +0000 (11:43 +0200)
Uploading an extension a zip file has a wrong check for directory
existence. Fix the path to this directory in the check.

Resolves: #65702
Releases: master,6.2
Change-Id: I61b46a6f9efb55e3f8b6843597a31b458752fc46
Reviewed-on: http://review.typo3.org/41096
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/extensionmanager/Classes/Utility/FileHandlingUtility.php

index 9228365..4adaa6d 100644 (file)
@@ -430,7 +430,7 @@ class FileHandlingUtility implements \TYPO3\CMS\Core\SingletonInterface {
                                        $last = strrpos(zip_entry_name($zipEntry), '/');
                                        $dir = substr(zip_entry_name($zipEntry), 0, $last);
                                        $file = substr(zip_entry_name($zipEntry), strrpos(zip_entry_name($zipEntry), '/') + 1);
-                                       if (!is_dir($dir)) {
+                                       if (!is_dir($extensionDir . $dir)) {
                                                GeneralUtility::mkdir_deep($extensionDir . $dir);
                                        }
                                        if (trim($file) !== '') {