MDL-21769 fixed input validation
This commit is contained in:
@@ -84,6 +84,7 @@ class data_field_textarea extends data_field_base {
|
||||
|
||||
function gen_textarea($usehtmleditor, $text='') {
|
||||
// MDL-16018: Don't print htmlarea with < 7 lines height, causes visualization problem
|
||||
$text = clean_text($text);
|
||||
$this->field->param3 = $usehtmleditor && $this->field->param3 < 7 ? 7 : $this->field->param3;
|
||||
return print_textarea($usehtmleditor, $this->field->param3, $this->field->param2,
|
||||
'', '', 'field_'.$this->field->id, $text, '', true, 'field_' . $this->field->id);
|
||||
|
||||
Reference in New Issue
Block a user