From c840798fd5a70e094866eea0a10fe54edfbc23ee Mon Sep 17 00:00:00 2001 From: pseudoyu Date: Thu, 24 Oct 2024 20:01:33 +0800 Subject: [PATCH] fix(route/rss3): should not contain path --- lib/routes/rss3/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/routes/rss3/index.ts b/lib/routes/rss3/index.ts index e2613d40c6fff7..bd96959f408832 100644 --- a/lib/routes/rss3/index.ts +++ b/lib/routes/rss3/index.ts @@ -123,9 +123,9 @@ export const route: Route = { async function handler(ctx) { const { account, network, tag } = ctx.req.param(); - // Check if account contains "://" - if (account.includes('://')) { - throw new Error('Account should not contain "://"'); + // Check if account contains "://" or "/" + if (account.includes('://') || account.includes('/')) { + throw new Error('Account should not contain "://" or path components'); } const { data } = await ofetch(