Issue #1888862 by enginpost, valthebald, rooby: Node add page help text can contain invalid markup.

8.0.x
webchick 2014-01-08 01:16:58 -08:00
parent c135816f1c
commit d575da5769
1 changed files with 2 additions and 2 deletions

View File

@ -131,12 +131,12 @@ function node_help($path, $arg) {
case 'node/%/edit': case 'node/%/edit':
$node = node_load($arg[1]); $node = node_load($arg[1]);
$type = node_type_load($node->bundle()); $type = node_type_load($node->bundle());
return (!empty($type->help) ? '<p>' . filter_xss_admin($type->help) . '</p>' : ''); return (!empty($type->help) ? filter_xss_admin($type->help) : '');
} }
if ($arg[0] == 'node' && $arg[1] == 'add' && $arg[2]) { if ($arg[0] == 'node' && $arg[1] == 'add' && $arg[2]) {
$type = node_type_load($arg[2]); $type = node_type_load($arg[2]);
return (!empty($type->help) ? '<p>' . filter_xss_admin($type->help) . '</p>' : ''); return (!empty($type->help) ? filter_xss_admin($type->help) : '');
} }
} }