Skip to content

Allow for Colon (":") in Source URI Path #102

Open
@marco-wildermuth

Description

@marco-wildermuth

Greetings!

When trying to add a source URI path containing a colon (:) through the backend module the validation fails, because it is not allowed in the regex /^[a-z0-9_\-\/\.%]+$/i.
It is possible to do it via commands:

./flow redirect:add --source 'category/subject:mysubject' --target 'category/subject:othersubject'

Although the colon is used in URIs for the protocol (like https://) or the port (like :80), it appears to be fine for usage in the URI path.

Related: In #101 it was proposed to have the regex only in one place, not two.

Thank you.

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