diff options
author | chris <chris@jalakai.co.uk> | 2005-09-28 00:32:08 +0200 |
---|---|---|
committer | chris <chris@jalakai.co.uk> | 2005-09-28 00:32:08 +0200 |
commit | 5783998f1518db5000b33432885f3153de6b579f (patch) | |
tree | 6e9e5ecf8969d1bd976db906307b447045324812 | |
parent | e653d5cd50b00d59a653325d20b9fc5d24af3e51 (diff) | |
download | rpg-5783998f1518db5000b33432885f3153de6b579f.tar.gz rpg-5783998f1518db5000b33432885f3153de6b579f.tar.bz2 |
remove compress detection changes from tarlib, its handled in the wrapper
darcs-hash:20050927223208-9b6ab-dffa89c68fd62072e5da60133ce3e49cc524966f.gz
-rw-r--r-- | lib/plugins/plugin/inc/tarlib.class.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/plugins/plugin/inc/tarlib.class.php b/lib/plugins/plugin/inc/tarlib.class.php index cda8254d5..65cca9181 100644 --- a/lib/plugins/plugin/inc/tarlib.class.php +++ b/lib/plugins/plugin/inc/tarlib.class.php @@ -47,8 +47,7 @@ class CompTar if($p_comptype == COMPRESS_DETECT) { if(strtolower(substr($p_filen,-3)) == '.gz') $p_comptype = COMPRESS_GZIP; -// elseif(strtolower(substr($p_filen,-4)) == '.bz2') $p_comptype = COMPRESS_BZIP; -- CS - elseif(preg_match( "/\.bz2?$/", $p_filen)) $p_comptype = COMPRESS_BZIP; //--CS bz or bz2 + elseif(strtolower(substr($p_filen,-4)) == '.bz2') $p_comptype = COMPRESS_BZIP; else $p_comptype = COMPRESS_NONE; } |