summaryrefslogtreecommitdiffstats
path: root/lib/private/installer.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2015-09-18 22:54:19 +0200
committerChristian Weiske <cweiske@cweiske.de>2015-10-20 21:56:24 +0200
commita543d20958592f0d354d1629c7408121eaabd8a7 (patch)
tree53ec501fa9dd3f4a5c864d224deadab834755ef6 /lib/private/installer.php
parenta0e479342c9f5f293e7c83be101b47c8e2ac8891 (diff)
downloadnextcloud-server-a543d20958592f0d354d1629c7408121eaabd8a7.tar.gz
nextcloud-server-a543d20958592f0d354d1629c7408121eaabd8a7.zip
Fix #19181: Support .bz2 app archives
At first a bz2 handling in needs to be fixed; PEAR's Archive_Tar otherwise gives the following error: > Unsupported compression type "bz" > Supported types are "gz", "bz2" and "lzma2" After that we can whitelist the application/bz2 MIME type in the installer.
Diffstat (limited to 'lib/private/installer.php')
-rw-r--r--lib/private/installer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/installer.php b/lib/private/installer.php
index b5ccc02abf3..86968a7c189 100644
--- a/lib/private/installer.php
+++ b/lib/private/installer.php
@@ -279,7 +279,7 @@ class OC_Installer{
//detect the archive type
$mime=OC_Helper::getMimeType($path);
- if ($mime !=='application/zip' && $mime !== 'application/x-gzip') {
+ if ($mime !=='application/zip' && $mime !== 'application/x-gzip' && $mime !== 'application/x-bzip2') {
throw new \Exception($l->t("Archives of type %s are not supported", array($mime)));
}