Skip to content

Error when passing in empty values for filter fields #46

@bryce13950

Description

@bryce13950

The following error was generated...

[2024-06-10 15:01:32] local.ERROR: explode(): Argument #2 ($string) must be of type string, null given {"exception":"[object] (TypeError(code: 0): explode(): Argument #2 ($string) must be of type string, null given at /code/app/Http/Middleware/SearchFilterParsingMiddleware.php:91)

with this query filter...

?filter[slug]=&expand[children]=*

The middleware should verify values passed in, and return 401 if values are empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions