@@ -7,8 +7,8 @@ dependencies[] = file
|
||||
files[] = image.test
|
||||
configure = admin/config/media/image-styles
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
; Information added by drupal.org packaging script on 2013-01-16
|
||||
version = "7.19"
|
||||
project = "drupal"
|
||||
datestamp = "1352325357"
|
||||
datestamp = "1358374870"
|
||||
|
||||
|
@@ -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'],
|
||||
|
@@ -6,8 +6,8 @@ core = 7.x
|
||||
files[] = image_module_test.module
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-11-07
|
||||
version = "7.17"
|
||||
; Information added by drupal.org packaging script on 2013-01-16
|
||||
version = "7.19"
|
||||
project = "drupal"
|
||||
datestamp = "1352325357"
|
||||
datestamp = "1358374870"
|
||||
|
||||
|
Reference in New Issue
Block a user