Commit 30e524b9 authored by Wouter Wolters's avatar Wouter Wolters Committed by Helmut Hummel
Browse files

[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's avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarHelmut Hummel <helmut.hummel@typo3.org>
Tested-by: default avatarHelmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 5593ef3c
......@@ -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) !== '') {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment