diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-11-14 14:46:35 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-11-14 14:46:35 -0500 |
commit | 64ec1ddf3503679cdf866e37ca9e99ec9974dc6b (patch) | |
tree | 6eeeff9722926e1f476822ad1d87b65948b17f4c /usr/local | |
parent | 364ecdd1baa20f4809ff5699d557971d4960768a (diff) | |
download | pfsense-64ec1ddf3503679cdf866e37ca9e99ec9974dc6b.zip pfsense-64ec1ddf3503679cdf866e37ca9e99ec9974dc6b.tar.gz |
Add nocsrf flag
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/guiconfig.inc | 8 | ||||
-rw-r--r-- | usr/local/www/installer.php | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc index 0a7663f..bafb8fa 100755 --- a/usr/local/www/guiconfig.inc +++ b/usr/local/www/guiconfig.inc @@ -34,10 +34,12 @@ /* Include authentication routines */ /* THIS MUST BE ABOVE ALL OTHER CODE */ -function csrf_startup() { - csrf_conf('rewrite-js', '/csrf/csrf-magic.js'); +if(!$nocsrf) { + function csrf_startup() { + csrf_conf('rewrite-js', '/csrf/csrf-magic.js'); + } + require_once("csrf/csrf-magic.php"); } -require_once("csrf/csrf-magic.php"); require_once("authgui.inc"); /* make sure nothing is cached */ diff --git a/usr/local/www/installer.php b/usr/local/www/installer.php index 6a83ac6..aa3b9c0 100644 --- a/usr/local/www/installer.php +++ b/usr/local/www/installer.php @@ -27,6 +27,8 @@ POSSIBILITY OF SUCH DAMAGE. */ +$nocsrf = true; + require("globals.inc"); require("guiconfig.inc"); |