Fixed file-extension substitution
This commit is contained in:
parent
d7ba97617d
commit
9bf0144003
|
@ -7,7 +7,7 @@ $file_ext = file_extension($file_name);
|
|||
if (!empty($_POST["desired_filename"])) {
|
||||
$file_name = $_POST["desired_filename"];
|
||||
if (!file_extension($file_name)) {
|
||||
$file_name = $file_name . $file_ext;
|
||||
$file_name = $file_name . "." . $file_ext;
|
||||
}
|
||||
}
|
||||
$file_name = sanitize_filename($file_name);
|
||||
|
|
Ŝarĝante…
Reference in New Issue