Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lifegpc committed May 30, 2024
1 parent 7d0d668 commit a16ff98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion routes/api/tag/[id].ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export const handler: Handlers = {
if (u && !u.is_admin && !(u.permissions & UserPermission.ReadGallery)) {
return return_error(403, "Permission denied.");
}
const ids = ctx.params.id.split(",");
const ids = decodeURIComponent(ctx.params.id.replaceAll("+", "%20"))
.split(",");
const r: Record<string, JSONResult<Tag>> = {};
for (const _id of ids) {
const id = parseInt(_id);
Expand Down

0 comments on commit a16ff98

Please sign in to comment.