From 74db7a24d9c2230b104979f4e4981c57ff73de71 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sat, 11 Dec 2010 14:05:05 -0500 Subject: Made Four Island 2 a little more sane I spent the last few hours sanitizing the database and fixing huge bugs in the code. Among the changes made were: - "Theoretically related posts" have been removed due to the lack of FULLTEXT index support in InnoDB tables - Removed tons of stripslashes() calls that were used to remove slashes from records before I realized (while doing all of this work) that magic_quotes_gpc was on for some reason. I mean, like, come on! - Replaced all non-library uses of htmlentities() with htmlspecialchars(), which basically does the same thing except it doesn't mangle Unicode. - Completely eradicated polls. Note that this does mean that all database backups prior to December 11th 2010 are now incompatible with Four Island. --- pages/post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pages/post.php') diff --git a/pages/post.php b/pages/post.php index 3f728c8..a5435c9 100755 --- a/pages/post.php +++ b/pages/post.php @@ -68,7 +68,7 @@ if (!isset($_POST['id'])) $template = new FITemplate('new-comment'); $template->add('ID', $cid); $template->add('CODEDEMAIL', md5(strtolower($getanon3['email']))); - $template->add('TEXT', stripslashes($_POST['comment'])); + $template->add('TEXT', $_POST['comment']); $template->add('USERNAME', $getanon3['username']); $template->add('DATE', date("F jS Y \a\\t g:i:s a")); $template->display(); @@ -108,7 +108,7 @@ if (!isset($_POST['id'])) $template = new FITemplate('new-comment'); $template->add('ID', $cid); $template->add('CODEDEMAIL', md5(strtolower($getuser3['user_email']))); - $template->add('TEXT', stripslashes($_POST['comment'])); + $template->add('TEXT', $_POST['comment']); $template->add('USERNAME', getSessionUsername()); $template->add('DATE', date("F jS Y \a\\t g:i:s a")); $template->display(); -- cgit 1.4.1