From bcf093ffa7c30ff846b28803ea7998b80fd047d6 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Thu, 5 Nov 2015 18:25:27 +0100 Subject: [PATCH] fixing a visual bug when uncompressing a .tar.gz file --- bureau/class/m_bro.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bureau/class/m_bro.php b/bureau/class/m_bro.php index 0b033270..1e55d22f 100644 --- a/bureau/class/m_bro.php +++ b/bureau/class/m_bro.php @@ -665,7 +665,7 @@ class m_bro { $cmd = "unzip -o " . escapeshellarg($file) . " -d " . escapeshellarg($dest) . " 2>&1"; passthru($cmd, $ret); } - if (substr($lfile, -3) == ".gz") { + if (substr($lfile, -3) == ".gz" && substr($lfile, -7) != ".tar.gz") { echo "

" . _("Uncompressing through GUNZIP") . "

";
             $cmd = "gunzip " . escapeshellarg($file) . " 2>&1";
             passthru($cmd, $ret);