1
0
mirror of https://github.com/prasathmani/tinyfilemanager.git synced 2025-05-03 22:07:47 +02:00
This commit is contained in:
Ijor Tengab 2024-05-27 10:57:33 +07:00 committed by GitHub
parent a306f4f1f7
commit d8fceac7dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -608,7 +608,7 @@ if ((isset($_SESSION[FM_SESSION_ID]['logged'], $auth_users[$_SESSION[FM_SESSION_
$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));