From 91be4cf353616908bffddca0c290e0efcd4b74f0 Mon Sep 17 00:00:00 2001 From: unitwk Date: Thu, 22 Dec 2022 21:53:32 +0800 Subject: [PATCH] Feat: strengthen permission --- src/app/routers/protected/user_instance_router.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/routers/protected/user_instance_router.ts b/src/app/routers/protected/user_instance_router.ts index 78b6c56..18e0a69 100755 --- a/src/app/routers/protected/user_instance_router.ts +++ b/src/app/routers/protected/user_instance_router.ts @@ -149,7 +149,7 @@ router.post( try { const serviceUuid = String(ctx.query.remote_uuid); const instanceUuid = String(ctx.query.uuid); - const taskName = String(ctx.query.task_name); + const taskName = String(ctx.query.task_name).toLowerCase().trim(); const parameter = ctx.request.body; // some asynchronous tasks are only allowed for administrators