From 32a634883d6b06975f20d0ad2c0af5f6ad525584 Mon Sep 17 00:00:00 2001 From: 1000TurquoisePogs Date: Wed, 8 Dec 2021 09:41:05 -0500 Subject: [PATCH] RBAC profile lookup fix for cases such as %3A Signed-off-by: 1000TurquoisePogs --- plugins/sso-auth/lib/safprofile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sso-auth/lib/safprofile.js b/plugins/sso-auth/lib/safprofile.js index 12232d7b..c2bcb524 100644 --- a/plugins/sso-auth/lib/safprofile.js +++ b/plugins/sso-auth/lib/safprofile.js @@ -113,7 +113,7 @@ function makeProfileName(type, parms) { function makeProfileNameForRequest(url, method, instanceID) { let urlData; let type; - url = decodeURI(url); + url = url.split('/').map((part)=>{return decodeURIComponent(part);}).join('/'); if (!url.match(/^\/[A-Za-z0-9]+\/plugins\//)) { url = url.toUpperCase(); type = "core";