summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_rules_edit.php
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-07-24 03:34:34 +0000
committerBill Marquette <billm@pfsense.org>2005-07-24 03:34:34 +0000
commitc68fc1e7aba950da804fe87d5bac1b83aae1a36b (patch)
treec4b13092edb747758a117a7b7b6dbbf7c1872d24 /usr/local/www/firewall_rules_edit.php
parentf5274cd141095a74bfd6b3c1d0f9400d43bc9d94 (diff)
downloadpfsense-c68fc1e7aba950da804fe87d5bac1b83aae1a36b.zip
pfsense-c68fc1e7aba950da804fe87d5bac1b83aae1a36b.tar.gz
really restrict user labels to 63 chars
Diffstat (limited to 'usr/local/www/firewall_rules_edit.php')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index 51cdb4a..ef9c444 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -282,7 +282,7 @@ if ($_POST) {
$filterent['log'] = true;
else
unset($filterent['log']);
- strncpy($filterent['descr'], $_POST['descr'], 63);
+ strncpy($filterent['descr'], $_POST['descr'], 52);
if ($_POST['gateway'] != "") {
$filterent['gateway'] = $_POST['gateway'];
@@ -723,7 +723,7 @@ Hint: the difference between block and reject is that with reject, a packet (TCP
<tr>
<td width="22%" valign="top" class="vncell">Description</td>
<td width="78%" class="vtable">
- <input name="descr" type="text" class="formfld" id="descr" size="63" maxlength="63" value="<?=htmlspecialchars($pconfig['descr']);?>">
+ <input name="descr" type="text" class="formfld" id="descr" size="52" maxlength="52" value="<?=htmlspecialchars($pconfig['descr']);?>">
<br> <span class="vexpl">You may enter a description here
for your reference (not parsed).</span></td>
</tr>
OpenPOWER on IntegriCloud