From 9273252cfce207445c0abf999fd8637b1d448603 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Wed, 30 Oct 2002 01:02:48 +0000 Subject: [PATCH] sqLquote subject ... git-svn-id: file:///svn/phpbb/trunk@2985 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/posting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/posting.php b/phpBB/posting.php index dbd81df4c3..827c35eccd 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -285,7 +285,7 @@ if (isset($post)) $sql = ($mode == 'post') ? 'INSERT INTO ' . TOPICS_TABLE : 'UPDATE ' . TOPICS_TABLE . ' SET WHERE topic_id = ' . intval($topic_id); $topic_sql = array( 'forum_id' => intval($forum_id), - 'topic_title' => $subject, + 'topic_title' => sql_quote($subject), 'topic_poster' => intval($user->data['user_id']), 'topic_time' => $current_time, 'topic_type' => intval($type),