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
63ee97f6
Commit
63ee97f6
authored
Nov 08, 2004
by
Dries
Browse files
- Patch
#9292
by killes from Carl: fixed a PHP5 compatibility problem with file handling.
parent
05676eda
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/file.inc
View file @
63ee97f6
...
...
@@ -132,6 +132,7 @@ function file_check_upload($source) {
}
}
elseif
(
$_FILES
[
"edit"
][
"name"
][
$source
]
&&
is_uploaded_file
(
$_FILES
[
"edit"
][
"tmp_name"
][
$source
]))
{
$file
=
new
stdClass
();
$file
->
filename
=
trim
(
basename
(
$_FILES
[
"edit"
][
"name"
][
$source
]),
'.'
);
$file
->
filemime
=
$_FILES
[
"edit"
][
"type"
][
$source
];
$file
->
filepath
=
$_FILES
[
"edit"
][
"tmp_name"
][
$source
];
...
...
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