PDA

View Full Version : [fixed] Template Bug: Maxlength not defined for split thread title


Paul
Sun 7th Sep '03, 10:01pm
Hi all,

Small bug with vB2.x and splitting threads. There is no maxlength attribute defined to the new thread title input. As such, the form does not limit the number of characters, which will be most noticible when entering text that will eventually be converted to html entities (i.e. " to ").

Simple fix. Add maxlength="85" to the input line.

Regards,
Paul

Mike Sullivan
Thu 6th Nov '03, 2:04pm
The template is threads_splitthread, BTW. And I added size="40" too.

<tr>
<td bgcolor="{secondaltcolor}"><normalfont><b>New thread title:</b></normalfont></td>
<td bgcolor="{secondaltcolor}"><normalfont><input type="text" class="bginput" name="title" size="40" maxlength="85" value="$threadinfo[title]"></normalfont></td>
</tr> That's not the entire template, but the new part is in bold/red.