diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2012-05-02 15:04:41 -0700 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2012-05-02 15:04:41 -0700 |
commit | cdb0df93be92c8cb68e1a5d3badbdc4e1be148da (patch) | |
tree | 4639d784e81cb085c8e107b1377c9674e296e125 /includes | |
parent | ef788926008f96942eaeac0faa4d7b4776b0f25a (diff) | |
parent | 9879d29f731570a34b24c4eae4cc8cb30c7a5082 (diff) | |
download | brdo-cdb0df93be92c8cb68e1a5d3badbdc4e1be148da.tar.gz brdo-cdb0df93be92c8cb68e1a5d3badbdc4e1be148da.tar.bz2 |
Merge branch '7.12-security' into 7.x
Diffstat (limited to 'includes')
-rw-r--r-- | includes/bootstrap.inc | 2 | ||||
-rw-r--r-- | includes/file.inc | 11 |
2 files changed, 9 insertions, 4 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 6ebfffee6..50e8253bb 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -8,7 +8,7 @@ /** * The current system version. */ -define('VERSION', '7.13-dev'); +define('VERSION', '7.13'); /** * Core API compatibility. diff --git a/includes/file.inc b/includes/file.inc index f7d3f34c1..c5e5cf07d 100644 --- a/includes/file.inc +++ b/includes/file.inc @@ -1967,7 +1967,9 @@ function file_download() { $function = $module . '_file_download'; $result = $function($uri); if ($result == -1) { - return drupal_access_denied(); + // Throw away the headers received so far. + $headers = array(); + break; } if (isset($result) && is_array($result)) { $headers = array_merge($headers, $result); @@ -1976,9 +1978,12 @@ function file_download() { if (count($headers)) { file_transfer($uri, $headers); } - return drupal_access_denied(); + drupal_access_denied(); } - return drupal_not_found(); + else { + drupal_not_found(); + } + drupal_exit(); } |