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
-------

a9f0705 ensure string type with mbstring func overloading enabled
  • Loading branch information
nicolas-grekas committed Nov 6, 2023
2 parents 5611ed4 + a9f0705 commit 03ef859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpFoundation/HeaderUtils.php
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 03ef859

Please sign in to comment.