mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
Fix bug
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user