8000 - · symfony/symfony@ed51a41 · GitHub
[go: up one dir, main page]

Skip to content

Commit ed51a41

Browse files
committed
-
1 parent d2fc87f commit ed51a41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/HeaderUtils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ private static function groupParts(array $matches, string $separators, bool $fir
261261
if (!$first && $previousMatchWasSeparator && isset($match['separator']) && $match['separator'] === $separator) {
262262
$previousMatchWasSeparator = true;
263263
$partMatches[$i][] = $match;
264-
} elseif (!$first && !isset($match['separator']) && isset($matches[$key + 1], $matches[$key + 1]['separator']) && $matches[$key+1]['separator'] === $separator && !isset($matches[$key+2])) { // ends with a separator, so it must be part of the value
264+
} elseif (!$first && !isset($match['separator']) && ($matches[$key + 1]['separator'] ?? null) === $separator && !isset($matches[$key + 2])) { // ends with a separator, so it must be part of the value
265265
$numberOfSeparators = 0;
266266
for ($i = $key+1; $i < \count($matches); ++$i) {
267267
if (!array_key_exists('separator', $matches[$i])) {

0 commit comments

Comments
 (0)
0