diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2010-08-04 01:25:21 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2010-08-04 01:25:21 +0200 |
commit | 96b6cc3cf41f3fc657505d3bb6d2be9b65abe636 (patch) | |
tree | 869923a16b91ea167734e8093398e74cabb62f9d /post_bug.cgi | |
parent | 5ba1d524f4bab646b54b589db77afd1b23b0b729 (diff) | |
download | bugs-96b6cc3cf41f3fc657505d3bb6d2be9b65abe636.tar bugs-96b6cc3cf41f3fc657505d3bb6d2be9b65abe636.tar.gz bugs-96b6cc3cf41f3fc657505d3bb6d2be9b65abe636.tar.bz2 bugs-96b6cc3cf41f3fc657505d3bb6d2be9b65abe636.tar.xz bugs-96b6cc3cf41f3fc657505d3bb6d2be9b65abe636.zip |
Bug 584110: Don't name attachment files "attachment.txt" by default, because this confuses IE
a=LpSolit
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-x | post_bug.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/post_bug.cgi b/post_bug.cgi index 74d26af2b..2c8062605 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -200,7 +200,7 @@ if (defined($cgi->upload('data')) || $cgi->param('attach_text')) { 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_$id.txt" : scalar $cgi->upload('data'), ispatch => scalar $cgi->param('ispatch'), isprivate => scalar $cgi->param('isprivate'), mimetype => $content_type, |