summaryrefslogtreecommitdiff
path: root/includes/file.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-01-04 09:23:44 +0000
committerDries Buytaert <dries@buytaert.net>2006-01-04 09:23:44 +0000
commit83cb8d9e95367c466209726b809e10e82c7e0f97 (patch)
tree7c774e609adf059bf8a873f06609b9992d72babf /includes/file.inc
parent9af704d3cf5a35a148c19526e7ac21346aaee084 (diff)
downloadbrdo-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.inc2
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)) {