Commaaa2
This commit is contained in:
@@ -286,7 +286,11 @@ class HeaderUtils
|
||||
}
|
||||
|
||||
foreach ($partMatches as $matches) {
|
||||
$parts[] = '' === $separators ? self::unquote($matches[0][0]) : self::groupParts($matches, $separators, false);
|
||||
if ('' === $separators && '' !== $unquoted = self::unquote($matches[0][0])) {
|
||||
$parts[] = $unquoted;
|
||||
} elseif ($groupedParts = self::groupParts($matches, $separators, false)) {
|
||||
$parts[] = $groupedParts;
|
||||
}
|
||||
}
|
||||
|
||||
return $parts;
|
||||
|
||||
@@ -226,14 +226,11 @@ class MockArraySessionStorage implements SessionStorageInterface
|
||||
/**
|
||||
* Generates a session ID.
|
||||
*
|
||||
* This doesn't need to be particularly cryptographically secure since this is just
|
||||
* a mock.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
protected function generateId()
|
||||
{
|
||||
return hash('sha256', uniqid('ss_mock_', true));
|
||||
return bin2hex(random_bytes(16));
|
||||
}
|
||||
|
||||
protected function loadSession()
|
||||
|
||||
2
vendor/symfony/http-foundation/composer.json
vendored
2
vendor/symfony/http-foundation/composer.json
vendored
@@ -22,7 +22,7 @@
|
||||
"symfony/polyfill-php80": "^1.16"
|
||||
},
|
||||
"require-dev": {
|
||||
"predis/predis": "~1.0",
|
||||
"predis/predis": "^1.0|^2.0",
|
||||
"symfony/cache": "^4.4|^5.0|^6.0",
|
||||
"symfony/dependency-injection": "^5.4|^6.0",
|
||||
"symfony/http-kernel": "^5.4.12|^6.0.12|^6.1.4",
|
||||
|
||||
Reference in New Issue
Block a user