mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
Fixed: missing maxlength attribute added to form handler.
This commit is contained in:
@@ -1127,6 +1127,8 @@ class e_form
|
||||
}
|
||||
|
||||
$options = $this->format_options('textarea', $name, $options);
|
||||
|
||||
print_a($options);
|
||||
//never allow id in format name-value for text fields
|
||||
return "<textarea name='{$name}' rows='{$rows}' cols='{$cols}'".$this->get_attributes($options, $name).">{$value}</textarea>".(false !== $counter ? $this->hidden('__'.$name.'autoheight_opt', $counter) : '');
|
||||
}
|
||||
@@ -2052,6 +2054,10 @@ class e_form
|
||||
if($optval) $ret .= " selected='selected'";
|
||||
break;
|
||||
|
||||
case 'maxlength':
|
||||
if($optval) $ret .= " maxlength='{$optval}'";
|
||||
break;
|
||||
|
||||
case 'checked':
|
||||
if($optval) $ret .= " checked='checked'";
|
||||
break;
|
||||
@@ -2191,7 +2197,8 @@ class e_form
|
||||
'placeholder' => '',
|
||||
'pattern' => '',
|
||||
'other' => '',
|
||||
'autocomplete' => ''
|
||||
'autocomplete' => '',
|
||||
'maxlength' => ''
|
||||
// 'multiple' => false, - see case 'select'
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user