- Adding a quick search feature to the header bar (http://www.bluestatic.org/bugs/showreport.php?bugid=57)
- Fixed an occurence in header.tpl where the $stylevar align wasn't used, but a hard-coded one was
- Only allow JPG, JPEG, PNG, and GIF attachments to be displayed inline because all other types could lead to an XSS attack
+- Added maxlength attributes to all <input type="text"/> fields so the database doesn't truncate (http://www.bluestatic.org/bugs/showreport.php?bugid=58)
1.1.3
===============================
</div>
<div class="box-mid" style="text-align: $stylevar[left]">
- <div><strong>{@"Description"}:</strong> <input name="description" type="text" size="35" value="$attachment[description]" /></div>
+ <div><strong>{@"Description"}:</strong> <input name="description" type="text" size="35" maxlength="250" value="$attachment[description]" /></div>
<div><strong>{@"Obsolete"}:</strong> <input name="obsolete" type="checkbox" value="1"<if condition="$attachment['obsolete']"> checked="checked"</if> /></div>
</div>
</div>
<div class="box-mid box-margmod-bottom" style="text-align: $stylevar[left]">
<div><input name="attachment" type="file" /></div>
- <div><strong>{@"Description"}:</strong> <input name="description" type="text" size="35" value="{$bugsys->in['description']}" /></div>
+ <div><strong>{@"Description"}:</strong> <input name="description" type="text" size="35" value="{$bugsys->in['description']}" maxlength="250" /></div>
</div>
<if condition="$show['obsoletes']">
<!-- summary -->
<fieldset>
<legend>{@"Summary"} $help[summary]</legend>
- <div class="field"><input type="text" name="summary" size="25" value="{$bugsys->in['summary']}" style="width: 100%" /></div>
+ <div class="field"><input type="text" name="summary" size="25" value="{$bugsys->in['summary']}" style="width: 100%" maxlength="250" /></div>
</fieldset>
<!-- / summary -->
<legend>{@"Summary"} $help[summary]</legend>
<div class="field">
<if condition="$show['edit']">
- <input type="text" name="summary" size="25" value="$bug[summary]" style="width: 100%" />
+ <input type="text" name="summary" size="25" value="$bug[summary]" style="width: 100%" maxlength="250" />
<else />
$bug[summary]
</if>
<div class="box-mid">
<fieldset>
<legend>{@"Display Name"}</legend>
- <input type="text" name="displayname" value="{$userinfo['displayname']}" size="25" style="width: 100%" />
+ <input type="text" name="displayname" value="{$userinfo['displayname']}" size="25" style="width: 100%" maxlength="250" />
</fieldset>
<fieldset>
{@"Please enter your password to change these fields"}:
<br />
- <input type="password" name="validate" size="35" />
+ <input type="password" name="validate" size="35" maxlength="250" />
</div>
<div class="box-mid box-margmod-top">
<fieldset>
<legend>{@"Password"}</legend>
- <input type="password" name="password_change" size="25" style="width: 100%" />
+ <input type="password" name="password_change" size="25" style="width: 100%" maxlength="250" />
</fieldset>
<fieldset>
<legend>{@"Confirm Password"}</legend>
- <input type="password" name="password_confirm" size="25" style="width: 100%" />
+ <input type="password" name="password_confirm" size="25" style="width: 100%" maxlength="250" />
</fieldset>
</div>
<div class="box-mid box-margmod-top">
<fieldset>
<legend>{@"Email"}</legend>
- <input type="text" name="email_change" size="25" value="$email" style="width: 100%" />
+ <input type="text" name="email_change" size="25" value="$email" style="width: 100%" maxlength="250" />
</fieldset>
<fieldset>
<legend>{@"Confirm Email"}</legend>
- <input type="text" name="email_confirm" size="25" value="$email_confirm" style="width: 100%" />
+ <input type="text" name="email_confirm" size="25" value="$email_confirm" style="width: 100%" maxlength="250" />
</fieldset>
</div>
</div>