mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-09 16:08:40 +00:00
Revert "fix(tinyfilemanager): basename not support cjk chars by default"
This reverts commit f6c8600830
.
This commit is contained in:
parent
f6c8600830
commit
4140e2f4f0
@ -809,7 +809,7 @@ if (!empty($_FILES) && !FM_READONLY) {
|
|||||||
|
|
||||||
$targetPath = $path . $ds;
|
$targetPath = $path . $ds;
|
||||||
if ( is_writable($targetPath) ) {
|
if ( is_writable($targetPath) ) {
|
||||||
$fullPath = $path . '/' . array_pop(explode("/", $fullPathInput));
|
$fullPath = $path . '/' . basename($fullPathInput);
|
||||||
$folder = substr($fullPath, 0, strrpos($fullPath, "/"));
|
$folder = substr($fullPath, 0, strrpos($fullPath, "/"));
|
||||||
|
|
||||||
if(file_exists ($fullPath) && !$override_file_name && !$chunks) {
|
if(file_exists ($fullPath) && !$override_file_name && !$chunks) {
|
||||||
|
Loading…
Reference in New Issue
Block a user