Skip to content

Wildcard search improvements #26

@davidteal

Description

@davidteal

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 use strpos($record['uri'], "*") !== false

Happy to submit PR

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