diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-02-08 16:12:10 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-02-08 16:12:10 +0000 |
commit | 5f78d143730fa89f0c6126ea005fa77337eaa66a (patch) | |
tree | c58b57c1dd8476987b766abb08970871bdf2aed1 | |
parent | 77fbe802a40cf5575d30066c3b7dcefd90b830aa (diff) | |
download | brdo-5f78d143730fa89f0c6126ea005fa77337eaa66a.tar.gz brdo-5f78d143730fa89f0c6126ea005fa77337eaa66a.tar.bz2 |
#16993: Bad query in upload.
-rw-r--r-- | modules/upload.module | 2 | ||||
-rw-r--r-- | modules/upload/upload.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/upload.module b/modules/upload.module index 244270373..5fb50b542 100644 --- a/modules/upload.module +++ b/modules/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. 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. |