diff options
author | Christian Weiske <cweiske@cweiske.de> | 2015-09-18 22:54:19 +0200 |
---|---|---|
committer | Christian Weiske <cweiske@cweiske.de> | 2015-10-20 21:56:24 +0200 |
commit | a543d20958592f0d354d1629c7408121eaabd8a7 (patch) | |
tree | 53ec501fa9dd3f4a5c864d224deadab834755ef6 /lib/private/installer.php | |
parent | a0e479342c9f5f293e7c83be101b47c8e2ac8891 (diff) | |
download | nextcloud-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.php | 2 |
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))); } |