mirror of
https://github.com/nextcloud/server.git
synced 2026-06-06 07:13:23 -04:00
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:
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue