@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user