summaryrefslogtreecommitdiffstats
path: root/etc/inc/voucher.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/voucher.inc')
-rw-r--r--etc/inc/voucher.inc3
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!
}
OpenPOWER on IntegriCloud