From 03a53c37202321d4b6bd3b978b9faa6a19efc90f Mon Sep 17 00:00:00 2001 From: natec Date: Tue, 9 Oct 2001 19:59:43 +0000 Subject: [PATCH] Fixed bug 468765 - addslashes to topic title when moving topics. git-svn-id: file:///svn/phpbb/trunk@1142 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/modcp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/modcp.php b/phpBB/modcp.php index 677d9ea1f7..5c2fc26620 100644 --- a/phpBB/modcp.php +++ b/phpBB/modcp.php @@ -410,7 +410,7 @@ switch($mode) $topic_id = $row[$i]['topic_id']; $sql = "INSERT INTO " . TOPICS_TABLE . " (forum_id, topic_title, topic_poster, topic_time, topic_status, topic_type, topic_vote, topic_views, topic_replies, topic_last_post_id, topic_moved_id) - VALUES ($old_forum_id, '" . $row[$i]['topic_title'] . "', '" . $row[$i]['topic_poster'] . "', " . $row[$i]['topic_time'] . ", " . TOPIC_MOVED . ", " . POST_NORMAL . ", " . $row[$i]['topic_vote'] . ", " . $row[$i]['topic_views'] . ", " . $row[$i]['topic_replies'] . ", " . $row[$i]['topic_last_post_id'] . ", $topic_id)"; + VALUES ($old_forum_id, '" . addslashes($row[$i]['topic_title']) . "', '" . $row[$i]['topic_poster'] . "', " . $row[$i]['topic_time'] . ", " . TOPIC_MOVED . ", " . POST_NORMAL . ", " . $row[$i]['topic_vote'] . ", " . $row[$i]['topic_views'] . ", " . $row[$i]['topic_replies'] . ", " . $row[$i]['topic_last_post_id'] . ", $topic_id)"; if( !$result = $db->sql_query($sql) ) { message_die(GENERAL_ERROR, "Could not insert new topic", "Error", __LINE__, __FILE__, $sql);