Skip to content

Commit 4d0f0f1

Browse files
authored
[9.x] Bump voku/portable-ascii to v2 (#40618)
* Bump voku/portable-ascii to v2 * Adjust tests to new behavior
1 parent 01fa44a commit 4d0f0f1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"symfony/var-dumper": "^6.0",
4343
"tijsverkoyen/css-to-inline-styles": "^2.2.2",
4444
"vlucas/phpdotenv": "^5.4.1",
45-
"voku/portable-ascii": "^1.6.1"
45+
"voku/portable-ascii": "^2.0"
4646
},
4747
"replace": {
4848
"illuminate/auth": "self.version",

src/Illuminate/Support/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"illuminate/contracts": "^9.0",
2424
"illuminate/macroable": "^9.0",
2525
"nesbot/carbon": "^2.53.1",
26-
"voku/portable-ascii": "^1.6.1"
26+
"voku/portable-ascii": "^2.0"
2727
},
2828
"conflict": {
2929
"tightenco/collect": "<5.5.33"

tests/Filesystem/FilesystemAdapterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function testDownloadNonAsciiFilename()
7272
$files = new FilesystemAdapter($this->filesystem, $this->adapter);
7373
$response = $files->download('file.txt', 'пиздюк.txt');
7474
$this->assertInstanceOf(StreamedResponse::class, $response);
75-
$this->assertSame("attachment; filename=pizdyuk.txt; filename*=utf-8''%D0%BF%D0%B8%D0%B7%D0%B4%D1%8E%D0%BA.txt", $response->headers->get('content-disposition'));
75+
$this->assertSame("attachment; filename=pizdiuk.txt; filename*=utf-8''%D0%BF%D0%B8%D0%B7%D0%B4%D1%8E%D0%BA.txt", $response->headers->get('content-disposition'));
7676
}
7777

7878
public function testDownloadNonAsciiEmptyFilename()
@@ -81,7 +81,7 @@ public function testDownloadNonAsciiEmptyFilename()
8181
$files = new FilesystemAdapter($this->filesystem, $this->adapter);
8282
$response = $files->download('пиздюк.txt');
8383
$this->assertInstanceOf(StreamedResponse::class, $response);
84-
$this->assertSame('attachment; filename=pizdyuk.txt; filename*=utf-8\'\'%D0%BF%D0%B8%D0%B7%D0%B4%D1%8E%D0%BA.txt', $response->headers->get('content-disposition'));
84+
$this->assertSame('attachment; filename=pizdiuk.txt; filename*=utf-8\'\'%D0%BF%D0%B8%D0%B7%D0%B4%D1%8E%D0%BA.txt', $response->headers->get('content-disposition'));
8585
}
8686

8787
public function testDownloadPercentInFilename()

0 commit comments

Comments
 (0)