Project

General

Profile

« Previous | Next » 

Revision f257c139

Added by Jim Pingle about 14 years ago

Don't do a csrf check when downloading packet capture, see http://forum.pfsense.org/index.php/topic,37794.0.html - also exit after sending the file to the user to avoid partial broken page loads after downloading a packet capture.

View differences:

usr/local/www/diag_packet_capture.php
35 35
##|*MATCH=diag_packet_capture.php*
36 36
##|-PRIV
37 37

  
38
if ($_POST['downloadbtn'] == gettext("Download Capture"))
39
	$nocsrf = true;
40

  
38 41
$pgtitle = array(gettext("Diagnostics"), gettext("Packet Capture"));
39 42
require_once("guiconfig.inc");
40 43
require_once("pfsense-utils.inc");
......
92 95
		header("Content-Disposition: attachment; filename=$fn");
93 96
		header("Content-Length: $fs");
94 97
		readfile($fp.$fn);
98
		exit;
95 99
	}
96 100
} else {
97 101
	$do_tcpdump = false;

Also available in: Unified diff