Permalink
Browse files

MDL-21769 fixed input validation

  • Loading branch information...
1 parent b6c760c commit 38b6976505e403b2907f2a0913accbc0c8cf55dd @skodak skodak committed Mar 7, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 mod/data/field/textarea/field.class.php
View
1 mod/data/field/textarea/field.class.php
@@ -84,6 +84,7 @@ function generate_sql($tablealias, $value) {
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);

0 comments on commit 38b6976

Please sign in to comment.