Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
26875e9b
Commit
26875e9b
authored
Dec 29, 2004
by
Dries
Browse files
- Added missing space
parent
627699cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/upload.module
View file @
26875e9b
...
@@ -90,7 +90,7 @@ function upload_download() {
...
@@ -90,7 +90,7 @@ function upload_download() {
function
upload_file_download
(
$file
)
{
function
upload_file_download
(
$file
)
{
if
(
user_access
(
'view uploaded files'
))
{
if
(
user_access
(
'view uploaded files'
))
{
$file
=
file_create_path
(
$file
);
$file
=
file_create_path
(
$file
);
$result
=
db_query
(
"SELECT * from
{
files
}
n "
.
node_access_join_sql
()
.
"WHERE filepath = '%s' AND "
.
node_access_where_sql
(),
$file
);
$result
=
db_query
(
"SELECT * from
{
files
}
n "
.
node_access_join_sql
()
.
"
WHERE filepath = '%s' AND "
.
node_access_where_sql
(),
$file
);
if
(
$file
=
db_fetch_object
(
$result
))
{
if
(
$file
=
db_fetch_object
(
$result
))
{
$name
=
mime_header_encode
(
$file
->
filename
);
$name
=
mime_header_encode
(
$file
->
filename
);
// Serve images and text inline for the browser to display rather than download.
// Serve images and text inline for the browser to display rather than download.
...
...
modules/upload/upload.module
View file @
26875e9b
...
@@ -90,7 +90,7 @@ function upload_download() {
...
@@ -90,7 +90,7 @@ function upload_download() {
function
upload_file_download
(
$file
)
{
function
upload_file_download
(
$file
)
{
if
(
user_access
(
'view uploaded files'
))
{
if
(
user_access
(
'view uploaded files'
))
{
$file
=
file_create_path
(
$file
);
$file
=
file_create_path
(
$file
);
$result
=
db_query
(
"SELECT * from
{
files
}
n "
.
node_access_join_sql
()
.
"WHERE filepath = '%s' AND "
.
node_access_where_sql
(),
$file
);
$result
=
db_query
(
"SELECT * from
{
files
}
n "
.
node_access_join_sql
()
.
"
WHERE filepath = '%s' AND "
.
node_access_where_sql
(),
$file
);
if
(
$file
=
db_fetch_object
(
$result
))
{
if
(
$file
=
db_fetch_object
(
$result
))
{
$name
=
mime_header_encode
(
$file
->
filename
);
$name
=
mime_header_encode
(
$file
->
filename
);
// Serve images and text inline for the browser to display rather than download.
// Serve images and text inline for the browser to display rather than download.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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