summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorAndreas Gohr <gohr@cosmocode.de>2013-01-23 16:16:18 +0100
committerAndreas Gohr <gohr@cosmocode.de>2013-01-23 16:16:18 +0100
commit7afccd0aab62eed3797273e5241b7729bab1fb3f (patch)
tree6e80f5d0180758a35feeaf3cf12513884d91633d /inc
parentd0cf0750a5e3c0dba2eb161ce81fdca331494e6e (diff)
downloadrpg-7afccd0aab62eed3797273e5241b7729bab1fb3f.tar.gz
rpg-7afccd0aab62eed3797273e5241b7729bab1fb3f.tar.bz2
Revert "handle bzip1 as well"
This reverts commit f2cb3ec76dec3fe2b40f25765ef842223c7132fe. Turns out I was too fast merging this. I can't get PHP's bzip handler to handle a bzip1 compressed file.
Diffstat (limited to 'inc')
-rw-r--r--inc/Tar.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/Tar.class.php b/inc/Tar.class.php
index 20d892e68..20f397395 100644
--- a/inc/Tar.class.php
+++ b/inc/Tar.class.php
@@ -618,7 +618,7 @@ class Tar {
$file = strtolower($file);
if(substr($file, -3) == '.gz' || substr($file, -4) == '.tgz') {
$comptype = Tar::COMPRESS_GZIP;
- } elseif(substr($file, -4) == '.bz2' || substr($file, -3) == '.bz' || substr($file, -4) == '.tbz' || substr($file, -5) == ".tbz2") {
+ } elseif(substr($file, -4) == '.bz2' || substr($file, -4) == '.tbz') {
$comptype = Tar::COMPRESS_BZIP;
} else {
$comptype = Tar::COMPRESS_NONE;