aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2010-08-04 01:25:21 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2010-08-04 01:25:21 +0200
commit96b6cc3cf41f3fc657505d3bb6d2be9b65abe636 (patch)
tree869923a16b91ea167734e8093398e74cabb62f9d /attachment.cgi
parentBug 584069: IE6 throws many JS errors (diff)
downloadbugzilla-96b6cc3cf41f3fc657505d3bb6d2be9b65abe636.tar.gz
bugzilla-96b6cc3cf41f3fc657505d3bb6d2be9b65abe636.tar.bz2
bugzilla-96b6cc3cf41f3fc657505d3bb6d2be9b65abe636.zip
Bug 584110: Don't name attachment files "attachment.txt" by default, because this confuses IE
a=LpSolit
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-xattachment.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/attachment.cgi b/attachment.cgi
index 8e69d388f..8117131b3 100755
--- a/attachment.cgi
+++ b/attachment.cgi
@@ -481,7 +481,7 @@ sub insert {
creation_ts => $timestamp,
data => scalar $cgi->param('attach_text') || $cgi->upload('data'),
description => scalar $cgi->param('description'),
- filename => $cgi->param('attach_text') ? 'attachment.txt' : scalar $cgi->upload('data'),
+ filename => $cgi->param('attach_text') ? "file_$bugid.txt" : scalar $cgi->upload('data'),
ispatch => scalar $cgi->param('ispatch'),
isprivate => scalar $cgi->param('isprivate'),
mimetype => $content_type,