From 9d202f2d562c0cb8299c832158811f2131c73e27 Mon Sep 17 00:00:00 2001 From: "mkanat%kerio.com" <> Date: Tue, 3 May 2005 01:52:02 +0000 Subject: Bug 289043: Implicit joins should be replaced by explicit joins - installment C Patch By Tomas Kopal r=joel, a=justdave --- post_bug.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'post_bug.cgi') diff --git a/post_bug.cgi b/post_bug.cgi index 0233fad83..9bc87e593 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -288,7 +288,7 @@ if (UserInGroup("editbugs") && defined($cgi->param('dependson'))) { my @stack = @{$deps{$target}}; while (@stack) { my $i = shift @stack; - SendSQL("select $target from dependencies where $me = " . + SendSQL("SELECT $target FROM dependencies WHERE $me = " . SqlQuote($i)); while (MoreSQLData()) { my $t = FetchOneColumn(); @@ -439,7 +439,7 @@ if (Param("insidergroup") && UserInGroup(Param("insidergroup"))) { } SendSQL("INSERT INTO longdescs (bug_id, who, bug_when, thetext, isprivate) - VALUES ($id, " . SqlQuote($user->id) . ", $sql_timestamp, " . + VALUES ($id, " . SqlQuote($user->id) . ", $sql_timestamp, " . SqlQuote($comment) . ", $privacy)"); # Insert the cclist into the database -- cgit v1.2.3-24-g4f1b