Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Avoid redundant URL encoding (#4555)
Browse files Browse the repository at this point in the history
* Do not double encode fallback redirect URL

Signed-off-by: Marcel Fabian Krüger <[email protected]>
  • Loading branch information
zauguin authored and richvdh committed Apr 4, 2019
1 parent 43c707a commit 9f5d206
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/4555.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Avoid redundant URL encoding of redirect URL for SSO login in the fallback login page. Fixes a regression introduced in [#4220](https://github.com/matrix-org/synapse/pull/4220). Contributed by Marcel Fabian Krüger ("[zaugin](https://github.com/zauguin)").
2 changes: 1 addition & 1 deletion synapse/static/client/login/js/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var show_login = function() {
$("#loading").hide();

var this_page = window.location.origin + window.location.pathname;
$("#sso_redirect_url").val(encodeURIComponent(this_page));
$("#sso_redirect_url").val(this_page);

if (matrixLogin.serverAcceptsPassword) {
$("#password_flow").show();
Expand Down

0 comments on commit 9f5d206

Please sign in to comment.