Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
upload.module
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
5 Aug 2007 at 11:03 UTC
Updated:
19 Aug 2007 at 16:18 UTC
I am attaching a tested patch for the bug. Marking as critical as it blocks download of files if in private mode.
- $result = db_query("SELECT f.* FROM {files} f INNER JOIN {upload} u ON f.fid = u.uid WHERE filepath = '%s'", $file);
+ $result = db_query("SELECT f.* FROM {files} f INNER JOIN {upload} u ON f.fid = u.fid WHERE filepath = '%s'", $file);
| Comment | File | Size | Author |
|---|---|---|---|
| upload_query_typo.patch | 780 bytes | flevour |
Comments
Comment #1
dries commentedCommitted to CVS HEAD. Thanks.
Comment #2
(not verified) commented