Closed blaues0cke closed 4 years ago
* * @return bool */ public function match($path) { return preg_match("~^" . $this->computedWildcards . "$~i", $path); }
We may should add a trycatch or @preg_match around this to avoid the whole site to get broken when the user enters a invalid rule?
trycatch
@preg_match
The user entered this configuration to make it crash:
?page_id=97: from: '/?page_id=97' to: '/' ?page_id=678: from: '/?page_id=678' to: '/'
Sure, open a PR and I'll have a look! Even better would be validation, but that'd be harder.
We may should add a
trycatch
or@preg_match
around this to avoid the whole site to get broken when the user enters a invalid rule?The user entered this configuration to make it crash: