From 38b6976505e403b2907f2a0913accbc0c8cf55dd Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Sun, 7 Mar 2010 15:29:39 +0000 Subject: [PATCH] MDL-21769 fixed input validation --- mod/data/field/textarea/field.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/mod/data/field/textarea/field.class.php b/mod/data/field/textarea/field.class.php index 3901b6d431f..9d22247a4f7 100755 --- a/mod/data/field/textarea/field.class.php +++ b/mod/data/field/textarea/field.class.php @@ -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);