From 3259e22d88fde2d392a0374052a8980ffc05e56b Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Fri, 11 Dec 2020 15:33:46 -0500 Subject: [PATCH] add additional schema checks Signed-off-by: Sebastian Malton --- src/main/protocol-handler/router.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/protocol-handler/router.ts b/src/main/protocol-handler/router.ts index 72a2f56135..07038ffc32 100644 --- a/src/main/protocol-handler/router.ts +++ b/src/main/protocol-handler/router.ts @@ -194,7 +194,7 @@ export class LensProtocolRouter extends Singleton { this.extentionRoutes.set(id, new Map()); } - if (urlSchema.includes(`:${EXTENSION_NAME_MATCH}`)) { + if (urlSchema.includes(`:${EXTENSION_NAME_MATCH}`) || urlSchema.includes(`:${EXTENSION_PUBLISHER_MATCH}`)) { throw new TypeError("Invalid url path schema"); }