summary refs log tree commit diff stats
path: root/includes/functions.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 /includes/functions.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 'includes/functions.php')
-rwxr-xr-xincludes/functions.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/includes/functions.php b/includes/functions.php index ce7a03e..1ff5c41 100755 --- a/includes/functions.php +++ b/includes/functions.php
@@ -276,7 +276,7 @@ function displayRelated($title, $avoid = 0)
276 $template = new FITemplate('related'); 276 $template = new FITemplate('related');
277 } 277 }
278 278
279 $template->adds_block('POST', array( 'TITLE' => $getrelated3[$i]['title'], 279 $template->adds_block('POST', array( 'TITLE' => htmlentities($getrelated3[$i]['title']),
280 'CODED' => $getrelated3[$i]['slug'], 280 'CODED' => $getrelated3[$i]['slug'],
281 'AUTHOR' => $getrelated3[$i]['author'], 281 'AUTHOR' => $getrelated3[$i]['author'],
282 'DATE' => date('F jS Y',strtotime($getrelated3[$i]['pubDate'])))); 282 'DATE' => date('F jS Y',strtotime($getrelated3[$i]['pubDate']))));
@@ -326,11 +326,11 @@ function getPollOfTheWeek($id = -1)
326 $getpoll2 = mysql_query($getpoll); 326 $getpoll2 = mysql_query($getpoll);
327 $getpoll3 = mysql_fetch_array($getpoll2); 327 $getpoll3 = mysql_fetch_array($getpoll2);
328 328
329 $potw->add('QUESTION', $getpoll3['question']); 329 $potw->add('QUESTION', stripslashes(htmlentities($getpoll3['question'])));
330 $potw->add('OPTION1', $getpoll3['option1']); 330 $potw->add('OPTION1', stripslashes(htmlentities($getpoll3['option1'])));
331 $potw->add('OPTION2', $getpoll3['option2']); 331 $potw->add('OPTION2', stripslashes(htmlentities($getpoll3['option2'])));
332 $potw->add('OPTION3', $getpoll3['option3']); 332 $potw->add('OPTION3', stripslashes(htmlentities($getpoll3['option3'])));
333 $potw->add('OPTION4', $getpoll3['option4']); 333 $potw->add('OPTION4', stripslashes(htmlentities($getpoll3['option4'])));
334 334
335 $getip = "SELECT * FROM didpollalready WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\""; 335 $getip = "SELECT * FROM didpollalready WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\"";
336 $getip2 = mysql_query($getip); 336 $getip2 = mysql_query($getip);