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); }