summaryrefslogtreecommitdiff
path: root/modules/upload/upload.module
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2005-02-08 16:12:10 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2005-02-08 16:12:10 +0000
commit5f78d143730fa89f0c6126ea005fa77337eaa66a (patch)
treec58b57c1dd8476987b766abb08970871bdf2aed1 /modules/upload/upload.module
parent77fbe802a40cf5575d30066c3b7dcefd90b830aa (diff)
downloadbrdo-5f78d143730fa89f0c6126ea005fa77337eaa66a.tar.gz
brdo-5f78d143730fa89f0c6126ea005fa77337eaa66a.tar.bz2
#16993: Bad query in upload.
Diffstat (limited to 'modules/upload/upload.module')
-rw-r--r--modules/upload/upload.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/upload/upload.module b/modules/upload/upload.module
index 244270373..5fb50b542 100644
--- a/modules/upload/upload.module
+++ b/modules/upload/upload.module
@@ -91,7 +91,7 @@ function upload_download() {
function upload_file_download($file) {
if (user_access('view uploaded files')) {
$file = file_create_path($file);
- $result = db_query(db_rewrite_sql("SELECT f.nid, * from {files} f WHERE filepath = '%s", 'f'), $file);
+ $result = db_query(db_rewrite_sql("SELECT f.nid, f.* from {files} f WHERE filepath = '%s", 'f'), $file);
if ($file = db_fetch_object($result)) {
$name = mime_header_encode($file->filename);
// Serve images and text inline for the browser to display rather than download.