Commit 63ee97f6 authored by Dries's avatar Dries

- Patch #9292 by killes from Carl: fixed a PHP5 compatibility problem with file handling.

parent 05676eda
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment