-
Notifications
You must be signed in to change notification settings - Fork 0
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
[CLOSED] Fix #13099: Disallow user to create files/folder using relative path #11240
Comments
Comment by swmitra
|
Comment by swmitra What we can think about is, predominantly the projects being worked upon are web projects in Brackets. Eventually these files will be served and loaded in browser shells. What kind of restrictions do we have in the file names while serving them over network. Just thinking loud, may be not valid in this context. |
Comment by sdalmeida Another confusion of mine is why are these filenames considered "bad" Why is |
Comment by sdalmeida
|
Comment by sdalmeida I've changed the function |
Comment by sdalmeida
|
Comment by sdalmeida Hi |
Comment by nethip Thanks for your contributions |
Issue by sdalmeida
Sunday Apr 02, 2017 at 16:45 GMT
Originally opened as adobe/brackets#13256
This is a Work In Progress PR referring to original issue adobe#13099
Before this PR can be landed, it would be nice to know which chars are actually invalid.
These are the chars that I'm invalidating:
\?
\\
\*
\.{2,}
<-- .. or more should not be allowed, but allow .\.$
<-- allow a file to have . but not end with .\/
\|
\>
\<
I also have to add a unit test for this case.
Let me know if there are any chars that need to be added/removed.
sdalmeida included the following code: https://github.com/adobe/brackets/pull/13256/commits
The text was updated successfully, but these errors were encountered: