Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x] Only allow uploading certain file extensions #9037

Merged
merged 4 commits into from
Nov 20, 2023

Conversation

jasonvarga
Copy link
Member

For improved security, file uploads are restricted to a list of extensions.

The list covers most use cases, but if you have a need for more you may them to your config.

@jasonvarga jasonvarga merged commit 97abe8b into 4.x Nov 20, 2023
35 checks passed
@jasonvarga jasonvarga deleted the prevent-uploading-dotfiles branch November 20, 2023 22:32
ryanmitchell added a commit to ryanmitchell/cms that referenced this pull request Nov 21, 2023
duncanmcclean added a commit to duncanmcclean/guest-entries that referenced this pull request Feb 11, 2024
duncanmcclean added a commit to duncanmcclean/guest-entries that referenced this pull request Feb 11, 2024
* Only allow uploading certain file extensions

Copying the fix from statamic/cms#9037

* Sanitize SVG uploads

* Apply Code Style changes

---------

Co-authored-by: duncanmcclean <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant