diff options
author | Dylan William Hardison <dylan@hardison.net> | 2015-10-16 00:58:09 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2015-10-16 00:58:09 +0200 |
commit | a0fcc8ff20fe57bf442402ba227954ffb33a2175 (patch) | |
tree | 9a3ee457971d8c8654d1a085d2c7261b54535621 /attachment.cgi | |
parent | b21167f4de2d29d7ce4a7cd07266783032099568 (diff) | |
download | bugzilla-a0fcc8ff20fe57bf442402ba227954ffb33a2175.tar.gz bugzilla-a0fcc8ff20fe57bf442402ba227954ffb33a2175.tar.xz |
Bug 1196626 - log all authenticated requests
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-x | attachment.cgi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/attachment.cgi b/attachment.cgi index 78023560d..104ee0ca8 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -435,6 +435,8 @@ sub view { } } } + Bugzilla->log_user_request($attachment->bug_id, $attachment->id, "attachment-get") + if Bugzilla->user->id; print $cgi->header(-type=>"$contenttype; name=\"$filename\"", -content_disposition=> "$disposition; filename=\"$filename\"", -content_length => $attachment->datasize); @@ -669,6 +671,8 @@ sub edit { $vars->{'attachment'} = $attachment; $vars->{'attachments'} = $bugattachments; + Bugzilla->log_user_request($attachment->bug_id, $attachment->id, "attachment-get") + if Bugzilla->user->id; print $cgi->header(); # Generate and return the UI (HTML page) from the appropriate template. |