From 5783998f1518db5000b33432885f3153de6b579f Mon Sep 17 00:00:00 2001
From: chris <chris@jalakai.co.uk>
Date: Wed, 28 Sep 2005 00:32:08 +0200
Subject: [PATCH] remove compress detection changes from tarlib, its handled in
 the wrapper

darcs-hash:20050927223208-9b6ab-dffa89c68fd62072e5da60133ce3e49cc524966f.gz
---
 lib/plugins/plugin/inc/tarlib.class.php | 3 +--
 1 file changed, 1 insertion(+), 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;
     }
 
-- 
GitLab