diff --git a/lib/private/archive/tar.php b/lib/private/archive/tar.php index 6dd6511598..4448e56850 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)]); } diff --git a/lib/private/installer.php b/lib/private/installer.php index b5ccc02abf..86968a7c18 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))); }