Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
ffc7c5c3
Commit
ffc7c5c3
authored
Jan 18, 2006
by
Dries
Browse files
- Patch
#44011
by Souvent22 et al: critical bugfix: make private downloads work again.
parent
2220c036
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/file.inc
View file @
ffc7c5c3
...
...
@@ -488,12 +488,12 @@ function file_download() {
$list
=
module_list
();
foreach
(
$list
as
$module
)
{
$headers
=
module_invoke
(
$module
,
'file_download'
,
$file
);
if
(
empty
(
$headers
))
{
drupal_access_denied
();
}
elseif
(
is_array
(
$headers
))
{
if
(
is_array
(
$headers
))
{
file_transfer
(
$file
,
$headers
);
}
elseif
(
$headers
==
-
1
)
{
drupal_access_denied
();
}
}
}
drupal_not_found
();
...
...
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