From 0f0d55ca727fbbfcac1be4188046f57cb82a91ad Mon Sep 17 00:00:00 2001 From: Scott Dale Date: Thu, 28 Jun 2007 00:45:32 +0000 Subject: [PATCH] parse entire path for packet capture file to download correctly --- usr/local/www/diag_packet_capture.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/www/diag_packet_capture.php b/usr/local/www/diag_packet_capture.php index 109ea34d00..8fd4ad84a5 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); }