summaryrefslogtreecommitdiff
path: root/modules/upload
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-03-10 19:02:06 +0000
committerDries Buytaert <dries@buytaert.net>2006-03-10 19:02:06 +0000
commit28c0c6197a7004256673b8894abe050d404691c2 (patch)
treebf11121a8c713f3befbe775ef3917d184185da61 /modules/upload
parentf5fff25e6fdfccf7eb9ff1e1d2b4500b532546ff (diff)
downloadbrdo-28c0c6197a7004256673b8894abe050d404691c2.tar.gz
brdo-28c0c6197a7004256673b8894abe050d404691c2.tar.bz2
- Patch #52092 by wtanaka, dopry and moshe: fixed regression with hook_file_download.
Diffstat (limited to 'modules/upload')
-rw-r--r--modules/upload/upload.module6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/upload/upload.module b/modules/upload/upload.module
index 5961add23..6e481657a 100644
--- a/modules/upload/upload.module
+++ b/modules/upload/upload.module
@@ -143,8 +143,14 @@ function upload_file_download($file) {
'Content-Length: '. $file->filesize,
'Content-Disposition: '. $disposition .'; filename='. $name);
}
+ else {
+ return -1;
+ }
}
}
+ else {
+ return -1;
+ }
}
function upload_form_alter($form_id, &$form) {