mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
parse entire path for packet capture file to download correctly
This commit is contained in:
parent
bef659d1a0
commit
0f0d55ca72
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user