diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-10-11 21:11:02 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-10-11 21:11:02 +0000 |
commit | ecf7ad41d0c3b8d4ea12e3883d3b5c9060eb2963 (patch) | |
tree | 264c817491a1484683e8adb2a2f47e344ef44717 /modules/node/node.module | |
parent | 4002681267044ab1d226ffeade7b8f6fface18ae (diff) | |
download | brdo-ecf7ad41d0c3b8d4ea12e3883d3b5c9060eb2963.tar.gz brdo-ecf7ad41d0c3b8d4ea12e3883d3b5c9060eb2963.tar.bz2 |
#242873 by pwolanin and bjaspan: Make drupal_set_title() do check_plain() by default.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 176804062..48e75a3be 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1142,7 +1142,7 @@ function node_build_content($node, $teaser = FALSE, $page = FALSE) { */ function node_show($node, $cid, $message = FALSE) { if ($message) { - drupal_set_title(t('Revision of %title from %date', array('%title' => $node->title, '%date' => format_date($node->revision_timestamp)))); + drupal_set_title(t('Revision of %title from %date', array('%title' => $node->title, '%date' => format_date($node->revision_timestamp))), PASS_THROUGH); } $output = node_view($node, FALSE, TRUE); @@ -1857,7 +1857,7 @@ function node_page_default() { * Menu callback; view a single node. */ function node_page_view($node, $cid = NULL) { - drupal_set_title(check_plain($node->title)); + drupal_set_title($node->title); return node_show($node, $cid); } |