summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-10-13 00:33:05 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-10-13 00:33:05 +0000
commit8292bdd40ab3a9e70d44dad0e681d0222c1556cb (patch)
tree7e66d08bef9b38acd705e9e918129083435af3b8 /modules/node/node.module
parent448640f1380c39ec3be39791d7efb449f150e1ed (diff)
downloadbrdo-8292bdd40ab3a9e70d44dad0e681d0222c1556cb.tar.gz
brdo-8292bdd40ab3a9e70d44dad0e681d0222c1556cb.tar.bz2
Re-commit of #242873 by pwolanin and bjaspan: Make drupal_set_title() check_plain() by default.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 15e73b1a2..7a7ebef29 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);
}