diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-01-04 09:23:44 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-01-04 09:23:44 +0000 |
commit | 83cb8d9e95367c466209726b809e10e82c7e0f97 (patch) | |
tree | 7c774e609adf059bf8a873f06609b9992d72babf /includes/file.inc | |
parent | 9af704d3cf5a35a148c19526e7ac21346aaee084 (diff) | |
download | brdo-83cb8d9e95367c466209726b809e10e82c7e0f97.tar.gz brdo-83cb8d9e95367c466209726b809e10e82c7e0f97.tar.bz2 |
- Patch #40599 by Chris Johnson: file_download() checks module_invoke() return = -1.
Diffstat (limited to 'includes/file.inc')
-rw-r--r-- | includes/file.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/file.inc b/includes/file.inc index 91aa484f1..100c6adcf 100644 --- a/includes/file.inc +++ b/includes/file.inc @@ -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)) { |