diff options
author | jim-p <jimp@pfsense.org> | 2015-08-18 09:39:52 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2015-08-18 09:39:52 -0400 |
commit | b08758c3f0c446ff2b2b5ab521a32e4a1efe4273 (patch) | |
tree | 7887eade49700ab58959a6ab480a86b165720080 | |
parent | 46203b8e80138638e32b2dcde4aa9c41a4eeb099 (diff) | |
download | pfsense-b08758c3f0c446ff2b2b5ab521a32e4a1efe4273.zip pfsense-b08758c3f0c446ff2b2b5ab521a32e4a1efe4273.tar.gz |
Properly declare an error when a too-short voucher is submitted.
-rw-r--r-- | etc/inc/voucher.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/voucher.inc b/etc/inc/voucher.inc index bf18fcb..7075fa6 100644 --- a/etc/inc/voucher.inc +++ b/etc/inc/voucher.inc @@ -392,6 +392,9 @@ function voucher_auth($voucher_received, $test = 0) { foreach ($a_vouchers_received as $voucher) { $v = escapeshellarg($voucher); if (strlen($voucher) < 3) { + $test_result[] = "{$voucher} invalid: Too short!"; + captiveportal_syslog("{$voucher} invalid: Too short!"); + $error++; continue; // seems too short to be a voucher! } |