From 0fc5ea122dba4e408f21045477d6c2ad10639c52 Mon Sep 17 00:00:00 2001 From: "terry%mozilla.org" <> Date: Wed, 23 Jun 1999 06:44:21 +0000 Subject: Make attachments remember who submitted that attachment. --- createattachment.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'createattachment.cgi') diff --git a/createattachment.cgi b/createattachment.cgi index 225efc02f..97a1f24b4 100755 --- a/createattachment.cgi +++ b/createattachment.cgi @@ -89,9 +89,10 @@ What kind of file is this? if ($mimetype !~ m@^(\w|-)+/(\w|-)+$@) { Punt("You must select a legal mime type. '$mimetype' simply will not do."); } - SendSQL("insert into attachments (bug_id, filename, description, mimetype, ispatch, thedata) values ($id," . + SendSQL("insert into attachments (bug_id, filename, description, mimetype, ispatch, submitter_id, thedata) values ($id," . SqlQuote($::FILENAME{'data'}) . ", " . SqlQuote($desc) . ", " . SqlQuote($mimetype) . ", $ispatch, " . + DBNameToIdAndCheck($::COOKIE{'Bugzilla_login'}) . ", " . SqlQuote($::FORM{'data'}) . ")"); SendSQL("select LAST_INSERT_ID()"); my $attachid = FetchOneColumn(); -- cgit v1.2.3-24-g4f1b