encode uri

This commit is contained in:
2026-01-18 01:20:22 -08:00
parent b837fd0b4d
commit 44522d656a
+1 -1
View File
@@ -33,7 +33,7 @@ export default {
//*/
let body = '<h1>listing of /' + objectName + '</h1><br>'
for (const itemName of Array.from(list).reverse()) {
body += '<a href="' + itemName + '">' + itemName + '</a><br>'
body += '<a href="' + encodeURI(itemName) + '">' + itemName + '</a><br>'
}
return new Response(body, { headers: { 'content-type': 'text/html' } })
}