From 6fda15a9673d02fa79d912e94d7516c4eadf9f7e Mon Sep 17 00:00:00 2001 From: Darren Embry Date: Wed, 21 Mar 2012 12:47:25 -0400 Subject: fix for: Output from CSRF magic mangles files in Diagnostics > Edit File http://redmine.pfsense.org/issues/2294 --- usr/local/www/edit.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'usr') diff --git a/usr/local/www/edit.php b/usr/local/www/edit.php index 942904a..56088b4 100644 --- a/usr/local/www/edit.php +++ b/usr/local/www/edit.php @@ -36,6 +36,9 @@ ##|*MATCH=edit.php* ##|-PRIV +if($_REQUEST['action'] === "load" || $_REQUEST['action'] === "save") + $nocsrf = true; + $pgtitle = array(gettext("Diagnostics"), gettext("Edit file")); require("guiconfig.inc"); -- cgit v1.1