Skip to content

Commit

Permalink
[MODIFIED] decodeURI to decodeURIComponent
Browse files Browse the repository at this point in the history
Signed-off-by: Zeeshan Mehboob <zeeshan.mehboob@infosys.com>
  • Loading branch information
zesu22 committed Jul 24, 2024
1 parent 76c67cd commit 7f6c55a
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 7f6c55a

Please sign in to comment.