Skip to content

Search with accent letters returns all results #653

Description

@HannahDeWachter

The is valid_query check only allows ASCII letters, so accent letters (e.g. é) fails validation, searchQuery falls back to '', and all entries are returned.

Change the regex to following to fix this:
private const COMMON_QUERY_CHARACTERS_REGEX = "/^[\p{L}0-9.!?\s'\"]+$/u";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions