Skip to content

Commit ff2818d

Browse files
committed
Merge branch '4.4' into 5.4
* 4.4: Use mb_convert_encoding instead of utf8_decode [FrameworkBundle] Always add CacheCollectorPass Fix "Notice: Undefined index: headers" in messenger with Oracle Indicate support for doctrine/persistence 3 Replace deprecated String.prototype.substr()
2 parents 34e89bc + 2744122 commit ff2818d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/BinaryFileResponseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function testSetContentDispositionGeneratesSafeFallbackFilenameForWrongly
9494
{
9595
$response = new BinaryFileResponse(__FILE__);
9696

97-
$iso88591EncodedFilename = utf8_decode('föö.html');
97+
$iso88591EncodedFilename = mb_convert_encoding('föö.html', 'ISO-8859-1', 'UTF-8');
9898
$response->setContentDisposition(ResponseHeaderBag::DISPOSITION_ATTACHMENT, $iso88591EncodedFilename);
9999

100100
// the parameter filename* is invalid in this case (rawurldecode('f%F6%F6') does not provide a UTF-8 string but an ISO-8859-1 encoded one)

0 commit comments

Comments
 (0)