From 10e3d66d87eaff4bdec6c7c743a25d84e4a2640e Mon Sep 17 00:00:00 2001 From: Steven Wittens <steven@10.no-reply.drupal.org> Date: Tue, 8 Feb 2005 18:43:37 +0000 Subject: [PATCH] - Missing apostrophe --- modules/upload.module | 2 +- modules/upload/upload.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/upload.module b/modules/upload.module index 5fb50b542a52..83a6cb4017a6 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, f.* 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 5fb50b542a52..83a6cb4017a6 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, f.* 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. -- GitLab