summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Embry <dse@webonastick.com>2012-03-21 12:47:25 -0400
committerjim-p <jimp@pfsense.org>2012-09-17 08:38:19 -0400
commit6fda15a9673d02fa79d912e94d7516c4eadf9f7e (patch)
tree2aa02f3bc11b0ee49a132b632078cc2f813f91a1
parent82f6b8e0de4f6c1d62b951bce51c3906dd60c0a0 (diff)
downloadpfsense-6fda15a9673d02fa79d912e94d7516c4eadf9f7e.zip
pfsense-6fda15a9673d02fa79d912e94d7516c4eadf9f7e.tar.gz
fix for: Output from CSRF magic mangles files in Diagnostics > Edit File
http://redmine.pfsense.org/issues/2294
-rw-r--r--usr/local/www/edit.php3
1 files changed, 3 insertions, 0 deletions
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");
OpenPOWER on IntegriCloud