summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-05-25 20:36:01 +0000
committerErmal <eri@pfsense.org>2011-05-25 20:36:01 +0000
commitc206a2ab96e835672bb073b0579d0a3290296067 (patch)
tree59afe9edc402de61db8c6260d0b360c0d7024395
parent05771a248503a0af661195f3e8759fc04370ea2b (diff)
downloadpfsense-c206a2ab96e835672bb073b0579d0a3290296067.zip
pfsense-c206a2ab96e835672bb073b0579d0a3290296067.tar.gz
Disable csrf checks when posting from scripts.
-rw-r--r--usr/local/www/services_captiveportal_vouchers.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/services_captiveportal_vouchers.php b/usr/local/www/services_captiveportal_vouchers.php
index d5c8347..e1c54b1 100644
--- a/usr/local/www/services_captiveportal_vouchers.php
+++ b/usr/local/www/services_captiveportal_vouchers.php
@@ -39,6 +39,8 @@
$statusurl = "status_captiveportal_vouchers.php";
$logurl = "diag_logs_auth.php";
+if ($_POST['postafterlogin'])
+ $nocsrf= true;
require("guiconfig.inc");
require("functions.inc");
require("filter.inc");
OpenPOWER on IntegriCloud