Refactors php_tar. Fixes tar file header, now supports long paths. Adds support for emtpy dirs. Ignores empty files (failed).

This commit is contained in:
Lars Jung 2013-07-19 17:56:22 +02:00
parent 02dd104223
commit 74f1c0a986
2 changed files with 104 additions and 57 deletions

View file

@ -111,6 +111,7 @@ class Api {
$hrefs = explode("|:|", trim($hrefs));
set_time_limit(0);
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=\"$as\"");
header("Connection: close");