From a3a420c3e6f3805a91448c877a8a423f7232198c Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 12 Oct 2008 06:27:06 +0000 Subject: Roll-back of #242873: This caused horrendous problems with SimpleTest on some configurations. --- modules/poll/poll.pages.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/poll') diff --git a/modules/poll/poll.pages.inc b/modules/poll/poll.pages.inc index 61f3bf6c2..39d456398 100644 --- a/modules/poll/poll.pages.inc +++ b/modules/poll/poll.pages.inc @@ -28,7 +28,7 @@ function poll_page() { * Callback for the 'votes' tab for polls you can see other votes on */ function poll_votes($node) { - drupal_set_title($node->title); + drupal_set_title(check_plain($node->title)); $output = t('This table lists all the recorded votes for this poll. If anonymous users are allowed to vote, they will be identified by the IP address of the computer they used when they voted.'); $header[] = array('data' => t('Visitor'), 'field' => 'u.name'); @@ -51,7 +51,7 @@ function poll_votes($node) { * Callback for the 'results' tab for polls you can vote on */ function poll_results($node) { - drupal_set_title($node->title); + drupal_set_title(check_plain($node->title)); $node->show_results = TRUE; return node_show($node, 0); } -- cgit v1.2.3