diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-01-18 19:18:30 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-01-18 19:18:30 +0000 |
commit | ffc7c5c3c6db7773de1c430422a1e08449e24f27 (patch) | |
tree | b4210af29c912bb180a1c5a2114964165cfcdce6 | |
parent | 2220c03633c513360a9f112db4ae596bb4eef4c6 (diff) | |
download | brdo-ffc7c5c3c6db7773de1c430422a1e08449e24f27.tar.gz brdo-ffc7c5c3c6db7773de1c430422a1e08449e24f27.tar.bz2 |
- Patch #44011 by Souvent22 et al: critical bugfix: make private downloads work again.
-rw-r--r-- | includes/file.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/file.inc b/includes/file.inc index 28bfb9629..80fb3f9a3 100644 --- a/includes/file.inc +++ b/includes/file.inc @@ -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(); |