summaryrefslogtreecommitdiffstats
path: root/usr/local/www/guiconfig.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-11-14 14:46:35 -0500
committerScott Ullrich <sullrich@pfsense.org>2010-11-14 14:46:35 -0500
commit64ec1ddf3503679cdf866e37ca9e99ec9974dc6b (patch)
tree6eeeff9722926e1f476822ad1d87b65948b17f4c /usr/local/www/guiconfig.inc
parent364ecdd1baa20f4809ff5699d557971d4960768a (diff)
downloadpfsense-64ec1ddf3503679cdf866e37ca9e99ec9974dc6b.zip
pfsense-64ec1ddf3503679cdf866e37ca9e99ec9974dc6b.tar.gz
Add nocsrf flag
Diffstat (limited to 'usr/local/www/guiconfig.inc')
-rwxr-xr-xusr/local/www/guiconfig.inc8
1 files changed, 5 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 */
OpenPOWER on IntegriCloud