Revert "fix(tinyfilemanager): basename not support cjk chars by default"

This reverts commit f6c8600830.
This commit is contained in:
Baoshuo Ren 2023-02-06 17:12:19 +08:00
parent f6c8600830
commit 4140e2f4f0
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -809,7 +809,7 @@ if (!empty($_FILES) && !FM_READONLY) {
$targetPath = $path . $ds;
if ( is_writable($targetPath) ) {
$fullPath = $path . '/' . array_pop(explode("/", $fullPathInput));
$fullPath = $path . '/' . basename($fullPathInput);
$folder = substr($fullPath, 0, strrpos($fullPath, "/"));
if(file_exists ($fullPath) && !$override_file_name && !$chunks) {