summaryrefslogtreecommitdiffstats
path: root/lib/private/archive/tar.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/archive/tar.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/archive/tar.php')
-rw-r--r--lib/private/archive/tar.php2
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)]);
}