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
6896e961
Commit
6896e961
authored
Jan 06, 2008
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 408446: Non-text attachments were mangled by "binmode STDOUT, ':utf8'"
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat
parent
45c7f0a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
attachment.cgi
attachment.cgi
+3
-0
No files found.
attachment.cgi
View file @
6896e961
...
...
@@ -246,6 +246,9 @@ sub view {
print
$cgi
->
header
(
-
type
=>
"$contenttype; name=\"$filename\""
,
-
content_disposition
=>
"inline; filename=\"$filename\""
,
-
content_length
=>
$attachment
->
datasize
);
if
(
Bugzilla
->
params
->
{
'utf8'
})
{
binmode
STDOUT
,
':raw'
;
# Turn off UTF8 encoding.
}
print
$attachment
->
data
;
}
...
...
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