add Password test, fix bug in Password with maxlength

This commit is contained in:
Colin Kuskie 2006-03-27 20:42:08 +00:00
parent 16a6c2cc00
commit c8c7b78ee1
2 changed files with 32 additions and 25 deletions

View file

@ -93,7 +93,7 @@ Renders an input tag of type password.
sub toHtml {
my $self = shift;
my $html = '<input type="password" name="'.$self->get("name").'" value="'.$self->fixQuotes($self->get("value")).'" size="'.$self->get("size").'" id="'.$self->get('id').'" ';
$html .= 'maxlength="'.$self->get("maxLength").'" ' if ($self->get("maxLength"));
$html .= 'maxlength="'.$self->get("maxlength").'" ' if ($self->get("maxlength"));
$html .= $self->get("extras").' />';
return $html;
}