-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Fix: Prevent creating folders with forbidden names #10967
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: Prevent creating folders with forbidden names #10967
Conversation
src/Files.App/Filesystem/FilesystemOperations/FilesystemOperations.cs
Outdated
Show resolved
Hide resolved
src/Files.App/Filesystem/FilesystemOperations/Helpers/FilesystemHelpers.cs
Show resolved
Hide resolved
Why are not just checking for invalid names in the create file dialog? |
Need to cover rename to as well. |
Rename already has the check |
If we cover this in the dialog we would have to check in multiple places, wouldn't we? |
What dialog is displayed there? We should reuse as much code as possible. |
I've noticed there isn't actually a check for rename. (I've added one) |
src/Files.App/Filesystem/FilesystemOperations/Helpers/FilesystemHelpers.cs
Show resolved
Hide resolved
Co-authored-by: yaira2 <39923744+yaira2@users.noreply.github.com>
src/Files.App/Filesystem/FilesystemOperations/Helpers/FilesystemHelpers.cs
Outdated
Show resolved
Hide resolved
src/Files.App/Filesystem/FilesystemOperations/Helpers/FilesystemHelpers.cs
Show resolved
Hide resolved
…fix_forbidden_filenames
…is/Files into fix_forbidden_filenames
@hecksmosis thank you |
Resolved / Related Issues
Items resolved / related issues by this PR.
Validation
How did you test these changes?