mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-06-06 05:38:44 +08:00
Do not replace + with space
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user