Skip to content

Commit f84fd4f

Browse files
bug #52474 [HttpFoundation] ensure string type with mbstring func overloading 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
2 parents 7a12bc1 + 4fbe133 commit f84fd4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

HeaderUtils.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ public static function parseQuery(string $query, bool $ignoreBrackets = false, s
256256
private static function groupParts(array $matches, string $separators, bool $first = true): array
257257
{
258258
$separator = $separators[0];
259-
$separators = substr($separators, 1);
259+
$separators = substr($separators, 1) ?: '';
260260
$i = 0;
261261

262262
if ('' === $separators && !$first) {

0 commit comments

Comments
 (0)