Commit 83cb8d9e authored by Dries's avatar Dries
Browse files

- Patch #40599 by Chris Johnson: file_download() checks module_invoke() return = -1.

parent 9af704d3
......@@ -488,7 +488,7 @@ function file_download() {
$list = module_list();
foreach ($list as $module) {
$headers = module_invoke($module, 'file_download', $file);
if ($headers === -1) {
if (empty($headers)) {
drupal_access_denied();
}
elseif (isset($headers) && is_array($headers)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment