Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
a7d58587
Commit
a7d58587
authored
Jan 02, 2007
by
Dries Buytaert
Browse files
- Patch
#103164
by davea and RobRoy: made downloads work on IE6. Send correct headers.
parent
67774634
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/upload/upload.module
View file @
a7d58587
...
...
@@ -265,12 +265,10 @@ function upload_file_download($file) {
if
(
user_access
(
'view uploaded files'
))
{
$node
=
node_load
(
$file
->
nid
);
if
(
node_access
(
'view'
,
$node
))
{
$name
=
mime_header_encode
(
$file
->
filename
);
$type
=
mime_header_encode
(
$file
->
filemime
);
return
array
(
'Content-Type: '
.
$type
.
'; name='
.
$name
,
'Content-Type: '
.
$type
,
'Content-Length: '
.
$file
->
filesize
,
'Cache-Control: private'
);
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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