update lock clucknut
All checks were successful
All checks were successful
This commit is contained in:
10
vendor/symfony/http-foundation/Request.php
vendored
10
vendor/symfony/http-foundation/Request.php
vendored
@@ -404,8 +404,16 @@ public static function create(string $uri, string $method = 'GET', array $parame
|
||||
$server['PHP_AUTH_PW'] = $components['pass'];
|
||||
}
|
||||
|
||||
if (!isset($components['path'])) {
|
||||
if ('' === $path = $components['path'] ?? '') {
|
||||
$components['path'] = '/';
|
||||
} elseif (!isset($components['scheme']) && !isset($components['host']) && '/' !== $path[0]) {
|
||||
if (false !== $pos = strpos($path, '/')) {
|
||||
$path = substr($path, 0, $pos);
|
||||
}
|
||||
|
||||
if (str_contains($path, ':')) {
|
||||
throw new BadRequestException('Invalid URI: Path is malformed.');
|
||||
}
|
||||
}
|
||||
|
||||
switch (strtoupper($method)) {
|
||||
|
||||
Reference in New Issue
Block a user