summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal
diff options
context:
space:
mode:
authorDarren Embry <dse@webonastick.com>2012-03-21 20:56:09 -0400
committerDarren Embry <dse@webonastick.com>2012-03-21 20:56:09 -0400
commitbef75b4c9f43c024db19907bf5f6167dd8f82cb8 (patch)
tree98b2b47799e14dd3f7d9d8889478045edc0cf997 /usr/local/captiveportal
parent9a45617000737d00af9364ae0aba28601472b3f0 (diff)
downloadpfsense-bef75b4c9f43c024db19907bf5f6167dd8f82cb8.zip
pfsense-bef75b4c9f43c024db19907bf5f6167dd8f82cb8.tar.gz
fix for: Captive Portal Login dies on empty input
Not actually tested because CP doesn't work right now. http://redmine.pfsense.org/issues/1874
Diffstat (limited to 'usr/local/captiveportal')
-rwxr-xr-xusr/local/captiveportal/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php
index e72d5f2..eec1602 100755
--- a/usr/local/captiveportal/index.php
+++ b/usr/local/captiveportal/index.php
@@ -140,7 +140,7 @@ EOD;
captiveportal_logportalauth("unauthenticated",$clientmac,$clientip,"ACCEPT");
portal_allow($clientip, $clientmac, "unauthenticated");
-} else if ($_POST['accept'] && $_POST['auth_voucher']) {
+} else if ($config['voucher'][$cpzone]['enable'] && $_POST['accept'] && $_POST['auth_voucher']) {
$voucher = trim($_POST['auth_voucher']);
$timecredit = voucher_auth($voucher);
OpenPOWER on IntegriCloud