1
0
mirror of https://github.com/prasathmani/tinyfilemanager.git synced 2025-05-01 21:07:55 +02:00

fix: Does not respect directory tree while uploading a folder containing sub-folders ()

This commit is contained in:
BANKA2017 2024-05-01 12:31:27 +08:00 committed by GitHub
parent ca4b1b1743
commit a1ae0fa729
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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