fix: bad zip content if non-ascii items are selected #274
Massimo Melina committed
Jun 21, 2023 at 23:52 UTC
859efad4fee3983f579906b6b6732ec53bd18de9
1 file changed
+1
-1
src/zip.ts
+1
-1
@@ -29,7 +29,7 @@ export async function zipStreamFromFolder(node: VfsNode, ctx: Koa.Context) {
29
if (await nodeIsDirectory(subNode)) { // a directory needs to walked
30
if (hasPermission(subNode, 'can_list',ctx)) {
31
yield subNode // it could be empty
32
- yield* walkNode(subNode, ctx, Infinity, uri + '/', 'can_read')
32
+ yield* walkNode(subNode, ctx, Infinity, decodeURI(uri) + '/', 'can_read')
33
}
34
continue
35
}