Skip to content

[CLOSED] Fix #13099: Disallow user to create files/folder using relative path #11240

@core-ai-bot

Description

@core-ai-bot

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions