summaryrefslogtreecommitdiffstats
path: root/usr/local/www/edit.php
diff options
context:
space:
mode:
authorDarren Embry <dse@webonastick.com>2012-03-21 12:47:25 -0400
committerDarren Embry <dse@webonastick.com>2012-03-21 12:47:25 -0400
commita38ea8d88e3c06ce4304da1d6404d13c2b894ef4 (patch)
treeb27edeed932087b20b46a55be1769e2b3d90a773 /usr/local/www/edit.php
parent2f3d495080a0b9c29dfa58cad304160d4a74716d (diff)
downloadpfsense-a38ea8d88e3c06ce4304da1d6404d13c2b894ef4.zip
pfsense-a38ea8d88e3c06ce4304da1d6404d13c2b894ef4.tar.gz
fix for: Output from CSRF magic mangles files in Diagnostics > Edit File
http://redmine.pfsense.org/issues/2294
Diffstat (limited to 'usr/local/www/edit.php')
-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 2d83d72..a95ebbf 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