Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
b45f6a2f
Commit
b45f6a2f
authored
May 25, 1999
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't put the filename in the content-type field; it's apparently not legal MIME…
Don't put the filename in the content-type field; it's apparently not legal MIME for some content-types.
parent
75b01b2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
showattachment.cgi
showattachment.cgi
+2
-3
No files found.
showattachment.cgi
View file @
b45f6a2f
...
...
@@ -18,7 +18,6 @@
# Netscape Communications Corporation. All Rights Reserved.
#
# Contributor(s): Terry Weissman <terry@mozilla.org>
# David Gardiner <david.gardiner@unisa.edu.au>
use
diagnostics
;
use
strict
;
...
...
@@ -29,7 +28,7 @@ ConnectToDatabase();
my
@row
;
if
(
defined
$::FORM
{
'attach_id'
})
{
SendSQL
(
"select mimetype,
filename,
thedata from attachments where attach_id = $::FORM{'attach_id'}"
);
SendSQL
(
"select mimetype, thedata from attachments where attach_id = $::FORM{'attach_id'}"
);
@row
=
FetchSQLData
();
}
if
(
!
@row
)
{
...
...
@@ -38,6 +37,6 @@ if (!@row) {
print
"Please hit back and try again.\n"
;
exit
;
}
print
qq{Content-type: $row[0]
; name="$row[1]"; \n\n$row[2
]}
;
print
qq{Content-type: $row[0]
"; \n\n$row[1
]}
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment