diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-03-10 19:02:06 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-03-10 19:02:06 +0000 |
commit | 28c0c6197a7004256673b8894abe050d404691c2 (patch) | |
tree | bf11121a8c713f3befbe775ef3917d184185da61 /modules/upload | |
parent | f5fff25e6fdfccf7eb9ff1e1d2b4500b532546ff (diff) | |
download | brdo-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.module | 6 |
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) { |