[Pkg-owncloud-commits] [owncloud] 16/79: Check if archive contains a directory named like appid
David Prévot
taffit at moszumanska.debian.org
Tue Sep 1 20:55:34 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 677bb62edfab57b9823d596e4021ec578da6dd69
Author: michag86 <micha_g at arcor.de>
Date: Mon Aug 10 09:36:16 2015 +0200
Check if archive contains a directory named like appid
---
lib/private/installer.php | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/private/installer.php b/lib/private/installer.php
index bd214be..8961c1e 100644
--- a/lib/private/installer.php
+++ b/lib/private/installer.php
@@ -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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list