From 1e0f6ff5588898f4b0493a56b406661654a5475b Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Wed, 20 Nov 2024 15:29:36 +0000 Subject: [PATCH] Add comment to explain URI encoding in getClusterKey method --- Common/Server/Middleware/ClusterKeyAuthorization.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/Common/Server/Middleware/ClusterKeyAuthorization.ts b/Common/Server/Middleware/ClusterKeyAuthorization.ts index acb24ff16b..095771f6b3 100644 --- a/Common/Server/Middleware/ClusterKeyAuthorization.ts +++ b/Common/Server/Middleware/ClusterKeyAuthorization.ts @@ -16,6 +16,7 @@ export default class ClusterKeyAuthorization { } public static getClusterKey(): string { + // we encode uri component because a lot of people use special characters in their cluster key secret return encodeURIComponent(ONEUPTIME_SECRET.toString()); }