diff --git a/lib/plugins/plugin/inc/tarlib.class.php b/lib/plugins/plugin/inc/tarlib.class.php index cda8254d5be804c2f45f309dd0acd07c40ead16a..65cca91812473db21cee056b8ec80cd1a1329588 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; }