summary refs log tree commit diff stats
path: root/admin/polls.php
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2009-10-02 19:04:20 -0400
committerStarla Insigna <hatkirby@fourisland.com>2009-10-02 19:04:20 -0400
commit9dfba1e70866fb2bb551678f6e04b8ddfd5467e1 (patch)
tree81f4731ae7b2fa902226f084480e26411ac3ad71 /admin/polls.php
parent00586f1e8ada8f5baa6e3013525862dccac77b4a (diff)
downloadfourisland-9dfba1e70866fb2bb551678f6e04b8ddfd5467e1.tar.gz
fourisland-9dfba1e70866fb2bb551678f6e04b8ddfd5467e1.tar.bz2
fourisland-9dfba1e70866fb2bb551678f6e04b8ddfd5467e1.zip
Fixed HTML Entites problem
When the poll escaping problem was fixed, a whole ton of other similar bugs were found which were also fixed here.

Fixes #115
Diffstat (limited to 'admin/polls.php')
-rw-r--r--admin/polls.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/polls.php b/admin/polls.php index 8e1465c..e4239fa 100644 --- a/admin/polls.php +++ b/admin/polls.php
@@ -82,7 +82,7 @@ foreach ($pager->getPageData() as $post)
82{ 82{
83 if (!empty($post)) 83 if (!empty($post))
84 { 84 {
85 $template->adds_block('POST', array( 'TITLE' => $post['question'], 85 $template->adds_block('POST', array( 'TITLE' => htmlentities($post['question']),
86 'ID' => $post['id'], 86 'ID' => $post['id'],
87 'ODD' => ($j % 2 ? '' : ' class="odd"'))); 87 'ODD' => ($j % 2 ? '' : ' class="odd"')));
88 } 88 }