summary refs log tree commit diff stats
path: root/pages/poll.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/poll.php')
-rwxr-xr-xpages/poll.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/pages/poll.php b/pages/poll.php index 6a87207..a9ab19f 100755 --- a/pages/poll.php +++ b/pages/poll.php
@@ -53,7 +53,7 @@ if (!isset($_GET['id']))
53 $question .= '....'; 53 $question .= '....';
54 } 54 }
55 $template->adds_block('POLL', array( 'ID' => $getpolls3[$i]['id'], 55 $template->adds_block('POLL', array( 'ID' => $getpolls3[$i]['id'],
56 'QUESTION' => $question, 56 'QUESTION' => htmlentities($question),
57 'WEEK' => date('F jS Y', strtotime($getpolls3[$i]['week'])), 57 'WEEK' => date('F jS Y', strtotime($getpolls3[$i]['week'])),
58 'EVEN' => (($i % 2 == 1) ? ' class="even"' : ''))); 58 'EVEN' => (($i % 2 == 1) ? ' class="even"' : '')));
59 $i++; 59 $i++;
@@ -90,7 +90,7 @@ if (!isset($_GET['id']))
90 90
91 if ($getpoll3['id'] == $_GET['id']) 91 if ($getpoll3['id'] == $_GET['id'])
92 { 92 {
93 $template->add('QUESTION', $getpoll3['question']); 93 $template->add('QUESTION', htmlentities($getpoll3['question']));
94 94
95 if ($getpoll3['text'] != '') 95 if ($getpoll3['text'] != '')
96 { 96 {