This commit is contained in:
2024-06-02 13:42:00 +08:00
parent 0ea6da38e4
commit d594036f66

View File

@@ -81,7 +81,9 @@ export const handler: Handlers = {
if (m.cfg.use_path_based_img_url) {
const ext = extname(f.path);
return Response.redirect(
`${get_host(req)}/file/${tverify}/${f.id}${ext}`,
`${get_host(req)}/file/${
encodeURIComponent(tverify)
}/${f.id}${ext}`,
);
}
const b = new URLSearchParams();