You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new code fails to parse more complex query parameters like: filter[&&][==][product.code]=demo
which is sent as: filter[%26%26][%3D%3D][product.code]=demo
The result is something like:
[]] => Array
(
[0] => =][product.code]=demo
)
which is invalid and hex2bin() then reports: hex2bin(): Hexadecimal input string must have an even length
Possible Solution
The problem is the custom parseQuery() method which fails to parse such input correctly:
… query string (nicolas-grekas)
This PR was merged into the 4.4 branch.
Discussion
----------
[FrameworkBundle] fix preserving some special chars in the query string
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix#39307
| License | MIT
| Doc PR | -
Commits
-------
6ecae57 [FrameworkBundle] fix preserving some special chars in the query string when redirecting
…rUtils::parseQuery() (nicolas-grekas)
This PR was merged into the 5.2 branch.
Discussion
----------
[HttpFoundation] fix parsing some special chars with HeaderUtils::parseQuery()
| Q | A
| ------------- | ---
| Branch? | 5.2
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix#39307
| License | MIT
| Doc PR | -
Same as #39357 for 5.2
Commits
-------
8682bdc [HttpFoundation] fix parsing some special chars with HeaderUtils::parseQuery()
Symfony version(s) affected: symfony/http-foundation:5.2.0
Description
The new code fails to parse more complex query parameters like:
filter[&&][==][product.code]=demo
which is sent as:
filter[%26%26][%3D%3D][product.code]=demo
The result is something like:
which is invalid and hex2bin() then reports:
hex2bin(): Hexadecimal input string must have an even length
Possible Solution
The problem is the custom parseQuery() method which fails to parse such input correctly:
symfony/http-foundation@v5.1.9...v5.2.0#diff-b6d0c8db4eac8fff2ef3214f93fdf07ad0c161ba4d238a514ba4ab6633dfea9dR196-R253
The PHP parse_str() method used in v5.1.9 works fine.
The text was updated successfully, but these errors were encountered: