summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal_vouchers_edit.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-02-17 09:48:00 +0000
committerErmal <eri@pfsense.org>2014-02-17 09:48:00 +0000
commitbd369bcfb4499cc91f7de090dbe67daefc635f64 (patch)
tree1f02c549f48b1995533f460eb149d879b4a90db3 /usr/local/www/services_captiveportal_vouchers_edit.php
parent74a40221d6ad7611bc6182aa506c5d6f5cee8edf (diff)
downloadpfsense-bd369bcfb4499cc91f7de090dbe67daefc635f64.zip
pfsense-bd369bcfb4499cc91f7de090dbe67daefc635f64.tar.gz
Use descr as the field name for voucher description so it gets CDATA protection. Fixes #3441
Diffstat (limited to 'usr/local/www/services_captiveportal_vouchers_edit.php')
-rw-r--r--usr/local/www/services_captiveportal_vouchers_edit.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/services_captiveportal_vouchers_edit.php b/usr/local/www/services_captiveportal_vouchers_edit.php
index f30d0ac..bddb389 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");
<tr>
<td width="22%" valign="top" class="vncell"><?=gettext("Comment"); ?></td>
<td width="78%" class="vtable">
- <?=$mandfldhtml;?><input name="comment" type="text" class="formfld" id="comment" size="60" value="<?=htmlspecialchars($pconfig['comment']);?>">
+ <?=$mandfldhtml;?><input name="descr" type="text" class="formfld" id="descr" size="60" value="<?=htmlspecialchars($pconfig['descr']);?>">
<br>
<span class="vexpl"><?=gettext("Can be used to further identify this roll. Ignored by the system"); ?>.</span>
</td>
OpenPOWER on IntegriCloud