mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2026-04-26 19:05:54 +03:00
[PR #48] [CLOSED] Check file extension on rename and creation #884
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#884
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?
📋 Pull Request Information
Original PR: https://github.com/prasathmani/tinyfilemanager/pull/48
Author: @CodeFetch
Created: 6/22/2018
Status: ❌ Closed
Base:
master← Head:patch-1📝 Commits (1)
0b92603Check file extension on rename and creation📊 Changes
1 file changed (+17 additions, -3 deletions)
View changed files
📝
tinyfilemanager.php(+17 -3)📄 Description
The allowed file extensions was only checked on upload.
Thus it is possible to upload a file with a permitted extension and change it to a non-permitted one afterwards.
That renders the „allowed upload file extension“ feature useless.
This commit checks the file extension on file rename and creation attempts, too.
Actually I think this should be reworked completely (I don't have time for that).
Allowed file extensions should be configurable each for:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.