mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Fixed a situation where we weren't escaping sql special chars.
git-svn-id: file:///svn/phpbb/trunk@1041 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
d80238fe57
commit
fe252a54fd
1 changed files with 2 additions and 1 deletions
|
@ -85,6 +85,7 @@ else
|
|||
$topic_id = "";
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Was cancel pressed? If so then redirect to the appropriate
|
||||
// page, no point in continuing with any further checks
|
||||
|
@ -629,7 +630,7 @@ if( ( $submit || $confirm ) && !$error )
|
|||
if( $mode == "newtopic" )
|
||||
{
|
||||
$sql = "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote)
|
||||
VALUES ('$subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote)";
|
||||
VALUES ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote)";
|
||||
|
||||
if( $result = $db->sql_query($sql, BEGIN_TRANSACTION) )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue