Skip to content

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

Merged
merged 21 commits into from
Jan 22, 2023

Conversation

hecksmosis
Copy link
Contributor

Resolved / Related Issues
Items resolved / related issues by this PR.

Validation
How did you test these changes?

  • Built and ran the app

@yaira2 yaira2 changed the title Fix: Files is allowing forbidden folder names Fix: Prevent creation of folders with forbidden names Jan 9, 2023
@gave92
Copy link
Member

gave92 commented Jan 10, 2023

Why are not just checking for invalid names in the create file dialog?

@yaira2
Copy link
Member

yaira2 commented Jan 10, 2023

Why are not just checking for invalid names in the create file dialog?

Need to cover rename to as well.

@hecksmosis
Copy link
Contributor Author

Rename already has the check

@hecksmosis
Copy link
Contributor Author

If we cover this in the dialog we would have to check in multiple places, wouldn't we?

@yaira2
Copy link
Member

yaira2 commented Jan 11, 2023

Rename already has the check

What dialog is displayed there? We should reuse as much code as possible.

@hecksmosis
Copy link
Contributor Author

I've noticed there isn't actually a check for rename. (I've added one)

@yaira2 yaira2 changed the title Fix: Prevent creation of folders with forbidden names Fix: Prevent creating folders with forbidden names Jan 19, 2023
hecksmosis and others added 2 commits January 19, 2023 21:14
QuaintMako
QuaintMako previously approved these changes Jan 20, 2023
@yaira2 yaira2 added ready to merge Pull requests that are approved and ready to merge and removed needs - code review labels Jan 22, 2023
@yaira2
Copy link
Member

yaira2 commented Jan 22, 2023

@hecksmosis thank you

@yaira2 yaira2 merged commit 8a54137 into files-community:main Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Pull requests that are approved and ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Files is allowing forbidden folder names (CON, NUL, etc)
4 participants