summaryrefslogtreecommitdiffstats
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:54 -0300
commitab6558b6a20362ac18b672f3341927e2a4ecb70b (patch)
tree0044bf28b5381e8e66c94a6bead7a5a0a67c1a83
parenta94b9befbdee3beaea5741e105336c7fba77e3de (diff)
downloadpfsense-RELENG_2_1_5.zip
pfsense-RELENG_2_1_5.tar.gz
Alias name cannot have more than 31 chars, add maxlength here just as an extra check. Ticket #3827RELENG_2_1_5
-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 2c83a45..b400920 100755
--- a/usr/local/www/firewall_aliases_edit.php
+++ b/usr/local/www/firewall_aliases_edit.php
@@ -601,7 +601,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