Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
18cd9c79
Commit
18cd9c79
authored
Jul 18, 2008
by
Dries Buytaert
Browse files
- Patch
#247095
by drewish: fixed variable name that cause private file uploads to be broken.
parent
8e60560b
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/upload/upload.module
View file @
18cd9c79
...
...
@@ -148,7 +148,7 @@ function _upload_file_limits($user) {
*/
function
upload_file_download
(
$filepath
)
{
$filepath
=
file_create_path
(
$filepath
);
$result
=
db_query
(
"SELECT f.* FROM
{
files
}
f INNER JOIN
{
upload
}
u ON f.fid = u.fid 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
path
);
if
(
$file
=
db_fetch_object
(
$result
))
{
if
(
!
user_access
(
'view uploaded files'
))
{
return
-
1
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment