From 378296af776e28c47652fd1268708be73f5f19ad Mon Sep 17 00:00:00 2001 From: Ermal Date: Mon, 17 Feb 2014 09:48:00 +0000 Subject: Use descr as the field name for voucher description so it gets CDATA protection. Fixes #3441 --- usr/local/www/services_captiveportal_vouchers_edit.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr/local/www') diff --git a/usr/local/www/services_captiveportal_vouchers_edit.php b/usr/local/www/services_captiveportal_vouchers_edit.php index 9cd85e8..daf5565 100644 --- a/usr/local/www/services_captiveportal_vouchers_edit.php +++ b/usr/local/www/services_captiveportal_vouchers_edit.php @@ -76,7 +76,7 @@ if (isset($id) && $a_roll[$id]) { $pconfig['number'] = $a_roll[$id]['number']; $pconfig['count'] = $a_roll[$id]['count']; $pconfig['minutes'] = $a_roll[$id]['minutes']; - $pconfig['comment'] = $a_roll[$id]['comment']; + $pconfig['descr'] = $a_roll[$id]['descr']; } $maxnumber = (1<<$config['voucher'][$cpzone]['rollbits']) -1; // Highest Roll# @@ -118,7 +118,7 @@ if ($_POST) { $rollent['zone'] = $_POST['zone']; $rollent['number'] = $_POST['number']; $rollent['minutes'] = $_POST['minutes']; - $rollent['comment'] = $_POST['comment']; + $rollent['descr'] = $_POST['descr']; /* New Roll or modified voucher count: create bitmask */ $voucherlck = lock("voucher{$cpzone}"); @@ -194,7 +194,7 @@ include("head.inc"); - +
. -- cgit v1.1