Commit bea411e1 authored by Dries's avatar Dries
Browse files

- Patch #509220 by tic2000: fixed text_field_sanitize() error.

parent 4cd373bf
......@@ -214,9 +214,9 @@ function text_field_sanitize($obj_type, $object, $field, $instance, &$items) {
}
}
else {
$item[$delta]['safe'] = check_plain($item['value']);
$items[$delta]['safe'] = check_plain($item['value']);
if ($field['type'] == 'text_with_summary') {
$item[$delta]['safe_summary'] = check_plain($item['summary']);
$items[$delta]['safe_summary'] = check_plain($item['summary']);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment