mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2026-04-26 10:55:56 +03:00
[GH-ISSUE #1327] Recursively Create Directories Failed or Not Supported #846
Labels
No labels
Feature
Feature
Is It Really an Issue?
Need More Info
Request
Security
bug
duplicate
enhancement
enhancement
help wanted
invalid
pull-request
question
suggestion
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tinyfilemanager#846
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @marsteel on GitHub (Jun 18, 2025).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/1327
To reproduce
Tiny File Manager 2.6
Create New Item
Item Type -
FolderItem Name -
/sftpgo/sftpgodataFolder
sftpgosftpgodatais created@smalos commented on GitHub (Jun 19, 2025):
In the code, there is a cleaning step for the folder name before creation:
$new = str_replace('/', '', fm_clean_path(strip_tags($_POST['newfilename'])));This line removes all slashes (/) from the folder name. As a result, the input /sftpgo/sftpgodata becomes sftpgosftpgodata.
The question is whether this behavior is intentional for security reasons, or if nested folder creation should be permitted.