Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Invalid regex syntax causes infinite redirects #62

Open
devinellis opened this issue Feb 15, 2017 · 1 comment
Open

Invalid regex syntax causes infinite redirects #62

devinellis opened this issue Feb 15, 2017 · 1 comment

Comments

@devinellis
Copy link

I accidentally added a redirect with a trailing pipe character. This caused it to infinite redirect ALL retour redirects, it seems. I recommend adding some sort of syntax validation before allowing the user to save a static Regex redirect, like:

preg_match('~InvalidRegular)Expression~', null) === false

from http://stackoverflow.com/questions/4440626/how-can-i-validate-regex

@khalwat
Copy link
Contributor

khalwat commented Feb 16, 2017

Ouch. Preflighting certainly seems like a good idea to me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants