Skip to content

Commit c061c7c

Browse files
Merge branch '6.4' into 7.3
* 6.4: Fix ord()-related PHP 8.5 deprecations [FrameworkBundle] Perform-no-deep-merging on workflow transitions' from/to configs [HttpKernel] Refine Vary header check to skip special handling of 'Accept-Language' when it's the only entry and '_vary_by_language' is `true` in `CacheAttributeListener`
2 parents 79ec7c4 + 3692415 commit c061c7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BinaryFileResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public function setContentDisposition(string $disposition, string $filename = ''
164164
for ($i = 0, $filenameLength = mb_strlen($filename, $encoding); $i < $filenameLength; ++$i) {
165165
$char = mb_substr($filename, $i, 1, $encoding);
166166

167-
if ('%' === $char || \ord($char) < 32 || \ord($char) > 126) {
167+
if ('%' === $char || \ord($char[0]) < 32 || \ord($char[0]) > 126) {
168168
$filenameFallback .= '_';
169169
} else {
170170
$filenameFallback .= $char;

0 commit comments

Comments
 (0)