diff options
author | David Rothstein <drothstein@gmail.com> | 2013-01-16 16:45:48 -0500 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2013-01-16 16:45:48 -0500 |
commit | 1d4604da252f0e6e19339957ec214388f61b908d (patch) | |
tree | 70f9fcda3737207074200a44e7cf949aebc60c66 /modules/image | |
parent | b47f95d3013619e33cafdf8b769b2b6179a07956 (diff) | |
download | brdo-1d4604da252f0e6e19339957ec214388f61b908d.tar.gz brdo-1d4604da252f0e6e19339957ec214388f61b908d.tar.bz2 |
Drupal 7.19
Diffstat (limited to 'modules/image')
-rw-r--r-- | modules/image/image.module | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/image/image.module b/modules/image/image.module index ff50452d5..07f489233 100644 --- a/modules/image/image.module +++ b/modules/image/image.module @@ -292,7 +292,8 @@ function image_file_download($uri) { if ($info = image_get_info($uri)) { // Check the permissions of the original to grant access to this image. $headers = module_invoke_all('file_download', $original_uri); - if (!in_array(-1, $headers)) { + // Confirm there's at least one module granting access and none denying access. + if (!empty($headers) && !in_array(-1, $headers)) { return array( // Send headers describing the image's size, and MIME-type... 'Content-Type' => $info['mime_type'], |