Skip to content

Commit

Permalink
Merge pull request #362 from alleyinteractive/ascii
Browse files Browse the repository at this point in the history
Upgrading to voku/portable-ascii 2.0
  • Loading branch information
srtfisher authored Jan 10, 2023
2 parents f6ffdc0 + 6f470e3 commit e567650
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v0.10.1 - 2023-01-10

- Upgrading to `voku/portable-ascii` v2 to fix conflicted version with `illuminate/support`.

## v0.10.0 - 2023-01-06

- Improvements to database factories: adds `with_meta()` to all supported types, adds `with_posts()` to term factory.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"symfony/string": "^6.0",
"symfony/var-dumper": "^6.0",
"vlucas/phpdotenv": "^5.5",
"voku/portable-ascii": "^1.4"
"voku/portable-ascii": "^2.0"
},
"require-dev": {
"alleyinteractive/alley-coding-standards": "^0.3 || ^0.4 || ^1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/mantle/support/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"nesbot/carbon": "^2.53",
"symfony/finder": "^6.0",
"symfony/var-dumper": "^6.0",
"voku/portable-ascii": "^1.4"
"voku/portable-ascii": "^2.0"
},
"extra": {
"branch-alias": {
Expand Down
4 changes: 2 additions & 2 deletions tests/filesystem/test-filesystem-adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ public function testDownloadNonAsciiFilename() {
$files = new Filesystem_Adapter( $this->filesystem );
$response = $files->download( 'file.txt', 'пиздюк.txt' );
$this->assertInstanceOf( StreamedResponse::class, $response );
$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' ) );
$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' ) );
}

public function testDownloadNonAsciiEmptyFilename() {
$this->filesystem->write( 'пиздюк.txt', 'Hello World' );
$files = new Filesystem_Adapter( $this->filesystem );
$response = $files->download( 'пиздюк.txt' );
$this->assertInstanceOf( StreamedResponse::class, $response );
$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' ) );
$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' ) );
}

public function testDownloadPercentInFilename() {
Expand Down

0 comments on commit e567650

Please sign in to comment.