diff options
-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; } |