Skip to content

Commit

Permalink
Merge pull request #228 from Infosys/feature/ES-1355
Browse files Browse the repository at this point in the history
[ES-1355] modified decodeURI to decodeURIComponent
  • Loading branch information
aranaravi committed Jul 24, 2024
2 parents 76c67cd + 7f6c55a commit 51bd08c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mock-relying-party-ui/src/components/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion mock-relying-party-ui/src/components/Registration.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion mock-relying-party-ui/src/components/SignUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 51bd08c

Please sign in to comment.