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/archive/tar.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/archive/tar.php')
-rw-r--r-- | lib/private/archive/tar.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/archive/tar.php b/lib/private/archive/tar.php index 6dd6511598d..4448e56850d 100644 --- a/lib/private/archive/tar.php +++ b/lib/private/archive/tar.php @@ -48,7 +48,7 @@ class OC_Archive_TAR extends OC_Archive { * @param string $source */ function __construct($source) { - $types = array(null, 'gz', 'bz'); + $types = array(null, 'gz', 'bz2'); $this->path = $source; $this->tar = new Archive_Tar($source, $types[self::getTarType($source)]); } |