diff options
author | Andreas Gohr <andi@splitbrain.org> | 2013-01-23 06:56:09 -0800 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2013-01-23 06:56:09 -0800 |
commit | d0cf0750a5e3c0dba2eb161ce81fdca331494e6e (patch) | |
tree | 7c44c9a8a22da320fbb3a6991b28a16cfa347bd7 /inc/Tar.class.php | |
parent | c68b2443b0ead0841bd063634f31abc677487ffa (diff) | |
parent | f2cb3ec76dec3fe2b40f25765ef842223c7132fe (diff) | |
download | rpg-d0cf0750a5e3c0dba2eb161ce81fdca331494e6e.tar.gz rpg-d0cf0750a5e3c0dba2eb161ce81fdca331494e6e.tar.bz2 |
Merge pull request #162 from glensc/bz-bz2
handle bz (bzip not bzip2) better
Diffstat (limited to 'inc/Tar.class.php')
-rw-r--r-- | inc/Tar.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/Tar.class.php b/inc/Tar.class.php index 20f397395..20d892e68 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, -4) == '.tbz') { + } elseif(substr($file, -4) == '.bz2' || substr($file, -3) == '.bz' || substr($file, -4) == '.tbz' || substr($file, -5) == ".tbz2") { $comptype = Tar::COMPRESS_BZIP; } else { $comptype = Tar::COMPRESS_NONE; |