Skip to content
Snippets Groups Projects
Commit 1a236905 authored by michag86's avatar michag86
Browse files

Check if archive contains a directory named like appid

parent 214729a5
No related branches found
No related tags found
No related merge requests found
...@@ -107,6 +107,9 @@ class OC_Installer{ ...@@ -107,6 +107,9 @@ class OC_Installer{
} }
$extractDir .= '/' . $info['id']; $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); OC_Helper::copyr($extractDir, $basedir);
//remove temporary files //remove temporary files
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment