From 6a1e676c5949d53d2c90ec27a58e2ed864fe86e7 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Tue, 1 Dec 2009 00:10:03 +0000 Subject: [PATCH] Fixes #1107 : downloading a folder works indeed ! but yes, we had a file naming issue (zip or tar.bz2 were in fact zip or tar.bz2, but they were still named .tar.gz...) --- bureau/class/m_bro.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bureau/class/m_bro.php b/bureau/class/m_bro.php index c7c8c911..18d1e9d7 100644 --- a/bureau/class/m_bro.php +++ b/bureau/class/m_bro.php @@ -856,7 +856,7 @@ class m_bro { */ function DownloadZ($dir="") { global $mem; - header("Content-Disposition: attachment; filename=".$mem->user["login"].".tgz"); + header("Content-Disposition: attachment; filename=".$mem->user["login"].".Z"); header("Content-Type: application/x-Z"); header("Content-Transfer-Encoding: binary"); $d=escapeshellarg(".".$this->convertabsolute($dir,1)); @@ -887,7 +887,7 @@ class m_bro { */ function DownloadTBZ($dir="") { global $mem; - header("Content-Disposition: attachment; filename=".$mem->user["login"].".tgz"); + header("Content-Disposition: attachment; filename=".$mem->user["login"].".tar.bz2"); header("Content-Type: application/x-bzip2"); header("Content-Transfer-Encoding: binary"); $d=escapeshellarg(".".$this->convertabsolute($dir,1)); @@ -902,7 +902,7 @@ class m_bro { */ function DownloadZIP($dir="") { global $mem; - header("Content-Disposition: attachment; filename=".$mem->user["login"].".tgz"); + header("Content-Disposition: attachment; filename=".$mem->user["login"].".zip"); header("Content-Type: application/x-zip"); header("Content-Transfer-Encoding: binary"); $d=escapeshellarg($this->convertabsolute($dir,0));