Skip to content

Issue with characters that require excapes #143

@the-moog

Description

@the-moog

The following regex seems to need escapes for the "/" on most platforms.

If entered on the site https://regex-vis.com the escape backslash is deleted from "/" as soon as you press enter.
Oddly it does not do that with the escaped backslash "\" in the same regex.

^:?((('\/?(\\'|[^'])+')|("\/?(\\"|[^"])+")|(\/?([^'"])+)+):?)*$ 

is changed to

^:?((('/?(\\'|[^'])+')|("/?(\\"|[^"])+")|(/?([^'"])+)+):?)*$

Also, though perhaps this is just a limitation, if I enter more than three tests I just get a blank screen.
Example tests:

/usr/local/sbin:'/usr/lo\'cal/bin':/usr/sbin:/usr/bin:/sbin:/bin:/root/.local/bin

I am guessing once you have a few like this it's breaking the size of the request URL or using characters that are not URL encoded properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions