From 30e524b9b1db2868b2c9eabacf30e30bc10f31de Mon Sep 17 00:00:00 2001
From: Wouter Wolters <typo3@wouterwolters.nl>
Date: Sat, 11 Jul 2015 14:29:18 +0200
Subject: [PATCH] [BUGFIX] Wrong directory path checked while unzipping
 extension

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>
---
 .../extensionmanager/Classes/Utility/FileHandlingUtility.php    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/typo3/sysext/extensionmanager/Classes/Utility/FileHandlingUtility.php b/typo3/sysext/extensionmanager/Classes/Utility/FileHandlingUtility.php
index 92283657e60e..4adaa6d52371 100644
--- a/typo3/sysext/extensionmanager/Classes/Utility/FileHandlingUtility.php
+++ b/typo3/sysext/extensionmanager/Classes/Utility/FileHandlingUtility.php
@@ -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) !== '') {
-- 
GitLab