Skip to content
Snippets Groups Projects
Commit 6e4a79f8 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #18159 from owncloud/check-appid-folder-in-archive

Check if archive contains a directory named like appid
parents 15e16d33 c7c021e1
No related branches found
No related tags found
No related merge requests found
......@@ -107,6 +107,10 @@ class OC_Installer{
}
$extractDir .= '/' . $info['id'];
if(!file_exists($extractDir)) {
OC_Helper::rmdirr($basedir);
throw new \Exception($l->t("Archive does not contain a directory named %s", $info['id']));
}
OC_Helper::copyr($extractDir, $basedir);
//remove temporary files
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment