[GH-ISSUE #417] Does not create a backup in the document root directory #307

Closed
opened 2026-03-02 15:57:41 +03:00 by kerem · 0 comments
Owner

Originally created by @DvashVistrame on GitHub (Aug 22, 2020).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/417

Press on the "Backup" button in an edit window on a file in the web server document root directory does not create a backup.
Shows "Error! Not allowed";
Reason:
Button onclick handler: onclick="backup('','readme.html')".
First argument ($_POST['path']) of "backup" functions is empty in DOCUMENT_ROOT path.
github.com/prasathmani/tinyfilemanager@44bedb9be0/tinyfilemanager.php (L457)

Originally created by @DvashVistrame on GitHub (Aug 22, 2020). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/417 Press on the "Backup" button in an edit window on a file in the web server document root directory does not create a backup. Shows "Error! Not allowed"; Reason: Button onclick handler: `onclick="backup('','readme.html')"`. First argument (`$_POST['path']`) of "backup" functions is empty in DOCUMENT_ROOT path. https://github.com/prasathmani/tinyfilemanager/blob/44bedb9be0eee2515a5c841386571954e72fb3a9/tinyfilemanager.php#L457
kerem closed this issue 2026-03-02 15:57:41 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tinyfilemanager#307
No description provided.