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

Check if archive contains a directory named like appid
This commit is contained in:
Thomas Müller 2015-08-10 16:16:05 +02:00
commit 6e4a79f852

View file

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