mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-08 19:35:43 +01:00
ad02c1625f
If the returnURL contains multiple query parameters (e.g. http://localhost:3000?foo=bar&bar=baz), the homeserver would fail to correctly parse the URL, and only the first query parameter would be kept. This is not an issue with the homeserver since the URL cannot be parsed in an unambiguous way, as the resulting URL would be: https://example.com/_matrix/client/r0/login/sso/redirect?redirectUrl=http://localhost:3000?foo=bar&bar=baz It's not possible to know whether the bar parameter is part of the "parent" URL, or part of the redirectUrl parameter. ---- To fix this, we now encode the redirectUrl parameter, which results in: https://example.com/_matrix/client/r0/login/sso/redirect?redirectUrl=http%3A%2F%2Flocalhost%3A3000%2Fparent.html%3Ffoo%3Dbar%26bar%3Dbaz This URL is correctly parsed by synapse. |
||
---|---|---|
.. | ||
domain | ||
fixtures/matrix/invites | ||
logging | ||
matrix | ||
mocks | ||
observable | ||
platform | ||
utils | ||
index.html | ||
lib.ts |