summaryrefslogtreecommitdiff
path: root/modules/image
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2013-01-16 16:56:53 -0500
committerDavid Rothstein <drothstein@gmail.com>2013-01-16 16:56:53 -0500
commitca55fc249ca2edba301ba426579376c94f4258f4 (patch)
treef1a695a5c37e85f4d186e60bcb070f1636233f88 /modules/image
parenta03edeb357816e1fa68586e1fef5be0d8f5257c3 (diff)
parent1d4604da252f0e6e19339957ec214388f61b908d (diff)
downloadbrdo-ca55fc249ca2edba301ba426579376c94f4258f4.tar.gz
brdo-ca55fc249ca2edba301ba426579376c94f4258f4.tar.bz2
Merge branch '7.18-security' into 7.x
Diffstat (limited to 'modules/image')
-rw-r--r--modules/image/image.module3
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'],