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...)

This commit is contained in:
Benjamin Sonntag 2009-12-01 00:10:03 +00:00
parent 761809aea5
commit 6a1e676c59
1 changed files with 3 additions and 3 deletions

View File

@ -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));