Skip to content

Commit

Permalink
bug #52474 [HttpFoundation] ensure string type with mbstring func ove…
Browse files Browse the repository at this point in the history
…rloading enabled (xabbuh)

This PR was merged into the 5.4 branch.

Discussion
----------

[HttpFoundation] ensure string type with mbstring func overloading enabled

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        | Fix #52419
| License       | MIT

Commits
-------

a9f0705c1b ensure string type with mbstring func overloading enabled
  • Loading branch information
nicolas-grekas committed Nov 6, 2023
2 parents 7a12bc1 + 4fbe133 commit f84fd4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HeaderUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public static function parseQuery(string $query, bool $ignoreBrackets = false, s
private static function groupParts(array $matches, string $separators, bool $first = true): array
{
$separator = $separators[0];
$separators = substr($separators, 1);
$separators = substr($separators, 1) ?: '';
$i = 0;

if ('' === $separators && !$first) {
Expand Down

0 comments on commit f84fd4f

Please sign in to comment.