Skip to content

Commit

Permalink
Do not replace + with space
Browse files Browse the repository at this point in the history
  • Loading branch information
lifegpc committed May 30, 2024
1 parent a16ff98 commit a694eea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions routes/api/tag/[id].ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a694eea

Please sign in to comment.