summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_aliases_edit.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-08-25 14:33:04 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-08-25 14:33:04 -0300
commiteab05c003633e253869ede8fc72a55c8d3a3ccbf (patch)
treeaaa3e73e0be214c79824ba56bae2ede149c30733 /usr/local/www/firewall_aliases_edit.php
parentd59716931f6d6b0387a39de3df2422c0410d99eb (diff)
downloadpfsense-eab05c003633e253869ede8fc72a55c8d3a3ccbf.zip
pfsense-eab05c003633e253869ede8fc72a55c8d3a3ccbf.tar.gz
Alias name cannot have more than 31 chars, add maxlength here just as an extra check. Ticket #3827
Diffstat (limited to 'usr/local/www/firewall_aliases_edit.php')
-rwxr-xr-xusr/local/www/firewall_aliases_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/firewall_aliases_edit.php b/usr/local/www/firewall_aliases_edit.php
index e3c0471..3479e8d 100755
--- a/usr/local/www/firewall_aliases_edit.php
+++ b/usr/local/www/firewall_aliases_edit.php
@@ -643,7 +643,7 @@ if (empty($tab)) {
<td valign="top" class="vncellreq"><?=gettext("Name"); ?></td>
<td class="vtable">
<input name="origname" type="hidden" id="origname" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['name']);?>" />
- <input name="name" type="text" id="name" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['name']);?>" />
+ <input name="name" type="text" id="name" class="formfld unknown" size="40" maxlength="31" value="<?=htmlspecialchars($pconfig['name']);?>" />
<?php if (isset($id) && $a_aliases[$id]): ?>
<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" />
<?php endif; ?>
OpenPOWER on IntegriCloud