Check if archive contains a directory named like appid

This commit is contained in:
michag86 2015-08-10 09:36:16 +02:00
parent 214729a552
commit 1a23690522

View file

@ -107,6 +107,9 @@ class OC_Installer{
}
$extractDir .= '/' . $info['id'];
if(!file_exists($extractDir)) {
throw new \Exception($l->t("Archive does not contain a directory named %s", $info['id']));
}
OC_Helper::copyr($extractDir, $basedir);
//remove temporary files