Skip to content
Snippets Groups Projects
Commit 9f5d206c authored by Marcel Krüger's avatar Marcel Krüger Committed by Richard van der Hoff
Browse files

Avoid redundant URL encoding (#4555)


* Do not double encode fallback redirect URL

Signed-off-by: default avatarMarcel Fabian Krüger <zauguin@gmail.com>
parent 43c707a0
Branches
Tags
No related merge requests found
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)").
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment