From 4140e2f4f0389adcd7e529db6d6ef168516d13f0 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Mon, 6 Feb 2023 17:12:19 +0800 Subject: [PATCH] Revert "fix(tinyfilemanager): basename not support cjk chars by default" This reverts commit f6c8600830739c8ab154b4599912adb1a7acc13c. --- web/app/controllers/tinyfilemanager/tinyfilemanager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/controllers/tinyfilemanager/tinyfilemanager.php b/web/app/controllers/tinyfilemanager/tinyfilemanager.php index e17689c..aa0bbd4 100644 --- a/web/app/controllers/tinyfilemanager/tinyfilemanager.php +++ b/web/app/controllers/tinyfilemanager/tinyfilemanager.php @@ -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) {