Skip to content

Commit

Permalink
fix: bad zip content if non-ascii items are selected #274
Browse files Browse the repository at this point in the history
  • Loading branch information
rejetto committed Jun 30, 2023
1 parent 81b4b7b commit 859efad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export async function zipStreamFromFolder(node: VfsNode, ctx: Koa.Context) {
if (await nodeIsDirectory(subNode)) { // a directory needs to walked
if (hasPermission(subNode, 'can_list',ctx)) {
yield subNode // it could be empty
yield* walkNode(subNode, ctx, Infinity, uri + '/', 'can_read')
yield* walkNode(subNode, ctx, Infinity, decodeURI(uri) + '/', 'can_read')
}
continue
}
Expand Down

0 comments on commit 859efad

Please sign in to comment.