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

fix: Enforce forbidden filename characters #43775

Merged
merged 2 commits into from
Feb 28, 2024
Merged

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Feb 23, 2024

Summary

This is a follow up on #40585 to enforce this also from the backend side.

Checklist

apps/files/lib/Capabilities.php Fixed Show fixed Hide fixed
apps/files/lib/Capabilities.php Fixed Show fixed Hide fixed
Copy link
Member

@blizzz blizzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nitpick, looks good, did not test

lib/public/Util.php Outdated Show resolved Hide resolved
@susnux susnux force-pushed the enforce/forbidden_chars branch 2 times, most recently from 2a3e26a to bd71fd2 Compare February 27, 2024 15:50
@skjnldsv skjnldsv removed the 3. to review Waiting for reviews label Feb 27, 2024
@skjnldsv skjnldsv added the 4. to release Ready to be released and/or waiting for tests to finish label Feb 27, 2024
@susnux susnux disabled auto-merge February 27, 2024 20:50
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@skjnldsv skjnldsv merged commit be98ea3 into master Feb 28, 2024
161 checks passed
@skjnldsv skjnldsv deleted the enforce/forbidden_chars branch February 28, 2024 21:47
@blizzz blizzz mentioned this pull request Mar 5, 2024
@unteem
Copy link

unteem commented May 16, 2024

Nice this can avoid some frustration ! Thanks for this.

Any reasons that it is not backported to v27 & v28 ?

@susnux
Copy link
Contributor Author

susnux commented May 16, 2024

Any reasons that it is not backported to v27 & v28 ?

This is a feature PR that introduced new API, so we can not backport it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug feature: files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implementing usage of forbidden_chars for file/folder uploads via WebDAV
4 participants