Skip to content

Allow non utf-8 char in uri #925

@martinos

Description

@martinos

I am using Phoenix as a SMS gateway. My app is receiving request from another SMS Gateway (https://www.kannel.org/) which sends a GET request to my app. The uri of the request contains a escaped binary that cannot be converted back to utf-8. This gives me the following msg in my logs:

[debug] ** (Plug.Conn.InvalidQueryError) invalid UTF-8 on urlencoded params, got byte 159

This was working fine on v1.8.3.

In order to reproduce this you can add %9f in any query string. The web server will return silently a 400

This is causes a major issue on my side since we can't change the query string from the sender.

I would be great if we could add an option to validate or not the incoming urlencoded params.

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