You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I can see, I don't think wildcard searches work on urls with a query string as the preg_match tries to use the ? as part of the expression. I fixed this by escaping ? characters in the str_replace.
Also, using * as the start of the redirect doesn't work due to using strpos($record['uri'], "*") which returns 0 and therefore doesn't pass the if statement. Should use strpos($record['uri'], "*") !== false
Happy to submit PR
The text was updated successfully, but these errors were encountered:
Hi there.
As far as I can see, I don't think wildcard searches work on urls with a query string as the preg_match tries to use the ? as part of the expression. I fixed this by escaping ? characters in the str_replace.
Also, using * as the start of the redirect doesn't work due to using
strpos($record['uri'], "*")
which returns 0 and therefore doesn't pass the if statement. Should usestrpos($record['uri'], "*") !== false
Happy to submit PR
The text was updated successfully, but these errors were encountered: