Updated symfony/http-foundation from 7.3.3 to 7.3.7

This commit is contained in:
johnnyq
2025-11-16 15:49:11 -05:00
parent efcc0fd5cb
commit 612041635d
11 changed files with 82 additions and 52 deletions

View File

@@ -164,7 +164,7 @@ class BinaryFileResponse extends Response
for ($i = 0, $filenameLength = mb_strlen($filename, $encoding); $i < $filenameLength; ++$i) {
$char = mb_substr($filename, $i, 1, $encoding);
if ('%' === $char || \ord($char) < 32 || \ord($char) > 126) {
if ('%' === $char || \ord($char[0]) < 32 || \ord($char[0]) > 126) {
$filenameFallback .= '_';
} else {
$filenameFallback .= $char;