Skip to content

Requests with '+' are converted to ' ', even when urlencoded as '%2b' #111

@tyzoid

Description

@tyzoid

Demonstration of the issue:

$ curl https://apilabs.tyzoid.com/api/hello/test/test++
{
    "message_a": "Hello test",
    "message_b": "Hello test  "
}

Changing

if (preg_match(":^$regex$:", urldecode($this->url), $matches)) {

to

if (preg_match(":^$regex$:", $this->url, $matches)) {

in findUrl() fixes this issue, but investigation is needed to ensure this does not break other intended functionality.

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