fix(route/rss3): should not contain path

This commit is contained in:
pseudoyu
2024-10-24 20:01:33 +08:00
parent 74f8320ea3
commit c840798fd5
+3 -3
View File
@@ -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(