summaryrefslogtreecommitdiffstats
path: root/usr
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
parent364ecdd1baa20f4809ff5699d557971d4960768a (diff)
downloadpfsense-64ec1ddf3503679cdf866e37ca9e99ec9974dc6b.zip
pfsense-64ec1ddf3503679cdf866e37ca9e99ec9974dc6b.tar.gz
Add nocsrf flag
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/guiconfig.inc8
-rw-r--r--usr/local/www/installer.php2
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");
OpenPOWER on IntegriCloud