Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #76 from thomasdbock/bug/spaces-not-parsed
Browse files Browse the repository at this point in the history
Parse `%20` as spaces before printing them
  • Loading branch information
payton authored Sep 19, 2020
2 parents ec2ec47 + dbc01f2 commit 8c16c21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions authn/openid.index.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@ function unauthorized(error, error_description, error_uri, callback) {
</html>
`;

page = page.replace(/%error%/g, encodeURI(error));
page = page.replace(/%error_description%/g, encodeURI(error_description));
page = page.replace(/%error%/g, encodeURI(error).replace(/%20/g,' '));
page = page.replace(/%error_description%/g, encodeURI(error_description).replace(/%20/g,' '));
page = page.replace(/%error_uri%/g, encodeURI(error_uri));

// Unauthorized access attempt. Reset token and nonce cookies
Expand Down

0 comments on commit 8c16c21

Please sign in to comment.