Don't allow user to enter descriptions longer than 63 chars

This commit is contained in:
Bill Marquette 2005-07-23 14:50:01 +00:00
parent c7c6cba405
commit 09db10704f

View File

@ -282,6 +282,7 @@ if ($_POST) {
$filterent['log'] = true;
else
unset($filterent['log']);
/* XXX: enforce 63 char max length server side, client-side is already done */
$filterent['descr'] = $_POST['descr'];
if ($_POST['gateway'] != "") {
@ -723,7 +724,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="40" value="<?=htmlspecialchars($pconfig['descr']);?>">
<input name="descr" type="text" class="formfld" id="descr" size="63" maxlength="63" value="<?=htmlspecialchars($pconfig['descr']);?>">
<br> <span class="vexpl">You may enter a description here
for your reference (not parsed).</span></td>
</tr>