parse entire path for packet capture file to download correctly

This commit is contained in:
Scott Dale 2007-06-28 00:45:32 +00:00
parent bef659d1a0
commit 0f0d55ca72

View File

@ -93,9 +93,9 @@ if ($_POST) {
}
else //download file
{
$fs = filesize($fn);
$fs = filesize($fp.$fn);
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=$fn");
header("Content-Disposition: attachment; filename=$fp.$fn");
header("Content-Length: $fs");
readfile($fp.$fn);
}