summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_packet_capture.php
diff options
context:
space:
mode:
authorScott Dale <sdale@pfsense.org>2007-06-28 00:45:26 +0000
committerScott Dale <sdale@pfsense.org>2007-06-28 00:45:26 +0000
commit93c86d2b757c9a832a32f98a1d8f9cca2a3eaa45 (patch)
treeb5c4e51c0d9e97ad78aea0e064e201d8883a77e8 /usr/local/www/diag_packet_capture.php
parent53747d8e8c9d5a291294d89f9c8e30693135ef60 (diff)
downloadpfsense-93c86d2b757c9a832a32f98a1d8f9cca2a3eaa45.zip
pfsense-93c86d2b757c9a832a32f98a1d8f9cca2a3eaa45.tar.gz
parse entire path for packet capture file to download correctly
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