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

Check if archive contains a directory named like appid
remotes/origin/handlebars-approach
Thomas Müller 2015-08-10 16:16:05 +07:00
commit 6e4a79f852
1 changed files with 4 additions and 0 deletions

@ -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