Thanks to visit codestin.com
Credit goes to github.com

Skip to content

HttpClient parseUrl is broken and not RFC compilant #50670

Closed
@Kozzi11

Description

@Kozzi11

Symfony version(s) affected

5.4.24

Description

When I use HttpClient with url which contain this data a part of path segment:

custom|2010-01-01 00:00:00|2023-06-15 05:50:35

I have got error from calling part because of wrongly url encoded data.

Issue is caused by this pull #49299

How to reproduce

Calling HttpClient::parseUrl('http://some.url/custom|2010-01-01 00:00:00|2023-06-15 05:50:35?a=b#c)' should return result array:

Array
(
    ...
    [path] => /custom%7C2010-01-01%2000:00:00%7C2023-06-15%2005:50:35
    ...
)

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions