Commit 9c6e8863 authored by Gábor Hojtsy's avatar Gábor Hojtsy

#189409 by Arancaytar: use filter_xss() to filter content type descriptions,...

#189409 by Arancaytar: use filter_xss() to filter content type descriptions, instead of printing them verbatim (on one occassion) and printing them with check_plain() erroneusly on another
parent 2934e783
......@@ -23,7 +23,7 @@ function node_overview_types() {
$row = array(
l($name, 'admin/content/types/'. $type_url_str),
check_plain($type->type),
check_plain($type->description),
filter_xss($type->description),
);
// Set the edit column.
$row[] = array('data' => l(t('edit'), 'admin/content/types/'. $type_url_str));
......
......@@ -29,7 +29,7 @@ function theme_node_add_list($content) {
$output = '<dl class="node-type-list">';
foreach ($content as $item) {
$output .= '<dt>'. l($item['title'], $item['href'], $item['options']) .'</dt>';
$output .= '<dd>'. $item['description'] .'</dd>';
$output .= '<dd>'. filter_xss($item['description']) .'</dd>';
}
$output .= '</dl>';
}
......
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