aboutsummaryrefslogtreecommitdiffstats
path: root/attachment.cgi
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2010-07-18 19:17:26 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2010-07-18 19:17:26 +0200
commit2addcaadedfe714bd0502911cc85cdab24736465 (patch)
tree0e58e2ce48866cdf7198d7d45df1348bf1e0859a /attachment.cgi
parentaef5cb18c3f2f6e1a438faed08e944af9db4847c (diff)
downloadbugs-2addcaadedfe714bd0502911cc85cdab24736465.tar
bugs-2addcaadedfe714bd0502911cc85cdab24736465.tar.gz
bugs-2addcaadedfe714bd0502911cc85cdab24736465.tar.bz2
bugs-2addcaadedfe714bd0502911cc85cdab24736465.tar.xz
bugs-2addcaadedfe714bd0502911cc85cdab24736465.zip
Bug 119703: Create an attachment by pasting it into a text field
r/a=mkanat
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-xattachment.cgi5
1 files changed, 2 insertions, 3 deletions
diff --git a/attachment.cgi b/attachment.cgi
index ca82bc463..5bb2a8537 100755
--- a/attachment.cgi
+++ b/attachment.cgi
@@ -478,12 +478,11 @@ sub insert {
my $attachment = Bugzilla::Attachment->create(
{bug => $bug,
creation_ts => $timestamp,
- data => scalar $cgi->param('attachurl') || $cgi->upload('data'),
+ data => scalar $cgi->param('attach_text') || $cgi->upload('data'),
description => scalar $cgi->param('description'),
- filename => $cgi->param('attachurl') ? '' : scalar $cgi->upload('data'),
+ filename => $cgi->param('attach_text') ? 'attachment.txt' : scalar $cgi->upload('data'),
ispatch => scalar $cgi->param('ispatch'),
isprivate => scalar $cgi->param('isprivate'),
- isurl => scalar $cgi->param('attachurl'),
mimetype => $content_type,
});