mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Check if archive contains a directory named like appid
This commit is contained in:
parent
214729a552
commit
1a23690522
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue