summaryrefslogtreecommitdiff
path: root/modules/poll
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/poll
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/poll')
-rw-r--r--modules/poll/poll.pages.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/poll/poll.pages.inc b/modules/poll/poll.pages.inc
index 39d456398..61f3bf6c2 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(check_plain($node->title));
+ drupal_set_title($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(check_plain($node->title));
+ drupal_set_title($node->title);
$node->show_results = TRUE;
return node_show($node, 0);
}