diff --git a/lib/dmllib.php b/lib/dmllib.php index a62cd5ff97e..2e46da7f7d9 100644 --- a/lib/dmllib.php +++ b/lib/dmllib.php @@ -354,7 +354,7 @@ function set_field($table, $newfield, $newvalue, $field1, $value1, $field2='', $ $conditions[$field3] = stripslashes_recursive($value3); } - return $DB->set_field($table, $newfield, $newvalue, $conditions); + return $DB->set_field($table, $newfield, stripslashes_recursive($newvalue), $conditions); } function count_records($table, $field1='', $value1='', $field2='', $value2='', $field3='', $value3='') {