Skip to content

Project name sanitization #117

@csalazar

Description

@csalazar

As described here (point 1,2,3 and 5) there are some security issues related to project name. I've thought in a fix sanitizing the project name value using the same logic as with variable version:

re.sub(r'[^a-zA-Z0-9_-]', '_', version)

It would have to apply to every method working with project name in FilesystemEggStorage to have consistency adding and then getting projects. It adds as side efect that two projects with non-common characters like project! and project? will share the same project name project_. Does someone see a better solution?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions