[BUGFIX] Wrong directory path checked while unzipping extension 23/41123/2
authorWouter Wolters <typo3@wouterwolters.nl>
Sat, 11 Jul 2015 12:29:18 +0000 (14:29 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Mon, 13 Jul 2015 10:33:09 +0000 (12:33 +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/41123
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/extensionmanager/Classes/Utility/FileHandlingUtility.php

index a14b148..53ef466 100644 (file)
@@ -419,7 +419,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 (strlen(trim($file)) > 0) {