diff options
author | Darren Embry <dse@webonastick.com> | 2012-03-21 12:47:25 -0400 |
---|---|---|
committer | Darren Embry <dse@webonastick.com> | 2012-03-21 12:47:25 -0400 |
commit | a38ea8d88e3c06ce4304da1d6404d13c2b894ef4 (patch) | |
tree | b27edeed932087b20b46a55be1769e2b3d90a773 /usr | |
parent | 2f3d495080a0b9c29dfa58cad304160d4a74716d (diff) | |
download | pfsense-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')
-rw-r--r-- | usr/local/www/edit.php | 3 |
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"); |