From 7f6c55a222461844f54497ae4d3fb04108ff94ca Mon Sep 17 00:00:00 2001 From: Zeeshan Mehboob Date: Wed, 24 Jul 2024 17:34:31 +0530 Subject: [PATCH] [MODIFIED] decodeURI to decodeURIComponent Signed-off-by: Zeeshan Mehboob --- mock-relying-party-ui/src/components/Login.js | 2 +- mock-relying-party-ui/src/components/Registration.js | 2 +- mock-relying-party-ui/src/components/SignUp.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mock-relying-party-ui/src/components/Login.js b/mock-relying-party-ui/src/components/Login.js index 5ba47fe1..7e2e6ebb 100644 --- a/mock-relying-party-ui/src/components/Login.js +++ b/mock-relying-party-ui/src/components/Login.js @@ -48,7 +48,7 @@ export default function Login({ i18nKeyPrefix = "login" }) { prompt: clientDetails.prompt, max_age: clientDetails.max_age, ui_locales: i18n.language, - claims: JSON.parse(decodeURI(clientDetails.userProfileClaims)), + claims: JSON.parse(decodeURIComponent(clientDetails.userProfileClaims)), }; window.SignInWithEsignetButton?.init({ diff --git a/mock-relying-party-ui/src/components/Registration.js b/mock-relying-party-ui/src/components/Registration.js index 1622b1d7..b487e45c 100644 --- a/mock-relying-party-ui/src/components/Registration.js +++ b/mock-relying-party-ui/src/components/Registration.js @@ -78,7 +78,7 @@ export default function Registration({ prompt: clientDetails.prompt, max_age: clientDetails.max_age, ui_locales: i18n.language, - claims: JSON.parse(decodeURI(clientDetails.registrationClaims)), + claims: JSON.parse(decodeURIComponent(clientDetails.registrationClaims)), }; window.SignInWithEsignetButton?.init({ diff --git a/mock-relying-party-ui/src/components/SignUp.js b/mock-relying-party-ui/src/components/SignUp.js index de8ea59e..5819df43 100644 --- a/mock-relying-party-ui/src/components/SignUp.js +++ b/mock-relying-party-ui/src/components/SignUp.js @@ -33,7 +33,7 @@ export default function SignUp({ i18nKeyPrefix = "signup" }) { prompt: clientDetails.prompt, max_age: clientDetails.max_age, ui_locales: i18n.language, - claims: JSON.parse(decodeURI(clientDetails.userProfileClaims)), + claims: JSON.parse(decodeURIComponent(clientDetails.userProfileClaims)), }; window.SignInWithEsignetButton?.init({