Do not replace + with space

This commit is contained in:
2024-05-30 12:57:49 +08:00
parent a16ff98225
commit a694eea39b

View File

@@ -15,8 +15,7 @@ export const handler: Handlers = {
if (u && !u.is_admin && !(u.permissions & UserPermission.ReadGallery)) {
return return_error(403, "Permission denied.");
}
const ids = decodeURIComponent(ctx.params.id.replaceAll("+", "%20"))
.split(",");
const ids = decodeURIComponent(ctx.params.id).split(",");
const r: Record<string, JSONResult<Tag>> = {};
for (const _id of ids) {
const id = parseInt(_id);