summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
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();
}