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

Commit

Permalink
Parse %20 as spaces before printing them
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasdbock committed Sep 18, 2020
1 parent ec2ec47 commit dbc01f2
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 dbc01f2

Please sign in to comment.