diff --git a/includes/common.inc b/includes/common.inc index 264992f0d35..b67350b9aea 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -945,7 +945,7 @@ function format_name($object) { $name = $object->name; } - $output = l($name, 'user/'. $object->uid, array('title' => t('View user profile.'))); + $output = l(check_plain($name), 'user/'. $object->uid, array('title' => t('View user profile.'))); } else if ($object->name) { // Sometimes modules display content composed by people who are @@ -953,10 +953,10 @@ function format_name($object) { // aggregator modules). This clause enables modules to display // the true author of the content. if ($object->homepage) { - $output = ''. $object->name .''; + $output = ''. check_plain($object->name) .''; } else { - $output = $object->name; + $output = check_plain($object->name); } $output .= ' ('. t('not verified') .')'; diff --git a/modules/book.module b/modules/book.module index 228ea14ba27..d03c0ef98b8 100644 --- a/modules/book.module +++ b/modules/book.module @@ -412,7 +412,7 @@ function book_view(&$node, $teaser = FALSE, $page = FALSE) { $node = book_content($node, $teaser); if (!$teaser && $node->moderate) { - $node->body .= '