summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2012-05-02 15:01:31 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2012-05-02 15:01:31 -0700
commit9879d29f731570a34b24c4eae4cc8cb30c7a5082 (patch)
treeb28fe3274dca5fb773ec91718f30a617b275fd2e /includes
parentb1f01b20ea67f6494421765b17afa17394e7a4b0 (diff)
downloadbrdo-9879d29f731570a34b24c4eae4cc8cb30c7a5082.tar.gz
brdo-9879d29f731570a34b24c4eae4cc8cb30c7a5082.tar.bz2
Drupal 7.13
Diffstat (limited to 'includes')
-rw-r--r--includes/bootstrap.inc2
-rw-r--r--includes/file.inc11
2 files changed, 9 insertions, 4 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index 677b216ee..763aad6d7 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 7fd6c71c9..676b32f15 100644
--- a/includes/file.inc
+++ b/includes/file.inc
@@ -1971,7 +1971,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);
@@ -1980,9 +1982,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();
}