summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_packet_capture.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/diag_packet_capture.php')
-rw-r--r--usr/local/www/diag_packet_capture.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/diag_packet_capture.php b/usr/local/www/diag_packet_capture.php
index 188d08f..5f648ac 100644
--- a/usr/local/www/diag_packet_capture.php
+++ b/usr/local/www/diag_packet_capture.php
@@ -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);
}
OpenPOWER on IntegriCloud