From 9dfba1e70866fb2bb551678f6e04b8ddfd5467e1 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Fri, 2 Oct 2009 19:04:20 -0400 Subject: 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 --- includes/footer.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'includes/footer.php') diff --git a/includes/footer.php b/includes/footer.php index 19cc341..d1f9668 100755 --- a/includes/footer.php +++ b/includes/footer.php @@ -1,4 +1,4 @@ - 'blog', 'CODED' => $getpost3['slug'], 'ENDING' => '/', - 'TITLE' => stripslashes($getpost3['title']), + 'TITLE' => stripslashes(htmlentities($getpost3['title'])), 'AUTHOR' => (($website != '') ? '' . $username . '' : $username))); $i++; } else if (strpos($getcomments3[$i]['page_id'], 'quote') !== FALSE) @@ -89,7 +89,7 @@ while ($getcomments3[$i] = mysql_fetch_array($getcomments2)) 'AREA' => 'poll', 'CODED' => $getpotw3['id'], 'ENDING' => '.php', - 'TITLE' => 'Poll "' . $getpotw3['question'] . '"', + 'TITLE' => 'Poll "' . htmlentities($getpotw3['question']) . '"', 'AUTHOR' => (($website != '') ? '' . $username . '' : $username))); $i++; } @@ -169,7 +169,7 @@ $i=0; while ($getpopular3[$i] = mysql_fetch_array($getpopular2)) { $template->adds_block('POPULAR', array( 'CODED' => $getpopular3[$i]['slug'], - 'TITLE' => stripslashes($getpopular3[$i]['title']))); + 'TITLE' => stripslashes(htmlentities($getpopular3[$i]['title'])))); $i++; } -- cgit 1.4.1