Skip to content

Commit

Permalink
Fix #963 (#969)
Browse files Browse the repository at this point in the history
  • Loading branch information
ijortengab authored May 27, 2024
1 parent a306f4f commit d8fceac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinyfilemanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ function get_file_path () {
$use_curl = false;
$temp_file = tempnam(sys_get_temp_dir(), "upload-");
$fileinfo = new stdClass();
$fileinfo->name = trim(basename($url), ".\x00..\x20");
$fileinfo->name = trim(urldecode(basename($url)), ".\x00..\x20");

$allowed = (FM_UPLOAD_EXTENSION) ? explode(',', FM_UPLOAD_EXTENSION) : false;
$ext = strtolower(pathinfo($fileinfo->name, PATHINFO_EXTENSION));
Expand Down

0 comments on commit d8fceac

Please sign in to comment.