mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-05-17 21:16:38 +02:00
Fix #963
This commit is contained in:
parent
4b2aef8737
commit
69c681db14
|
@ -582,7 +582,7 @@ if ((isset($_SESSION[FM_SESSION_ID]['logged'], $auth_users[$_SESSION[FM_SESSION_
|
||||||
$use_curl = false;
|
$use_curl = false;
|
||||||
$temp_file = tempnam(sys_get_temp_dir(), "upload-");
|
$temp_file = tempnam(sys_get_temp_dir(), "upload-");
|
||||||
$fileinfo = new stdClass();
|
$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;
|
$allowed = (FM_UPLOAD_EXTENSION) ? explode(',', FM_UPLOAD_EXTENSION) : false;
|
||||||
$ext = strtolower(pathinfo($fileinfo->name, PATHINFO_EXTENSION));
|
$ext = strtolower(pathinfo($fileinfo->name, PATHINFO_EXTENSION));
|
||||||
|
|
Loading…
Reference in a new issue