Skip to content

Commit

Permalink
fix: sanitize the path for repeated slash in body.html
Browse files Browse the repository at this point in the history
  • Loading branch information
emrahcom committed Oct 12, 2024
1 parent 726a579 commit 261a886
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion charts/jitsi-keycloak-adapter/files/web/oidc/body.oidc.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
const qs = new URLSearchParams(window.location.search.substring(1));
qs.delete("oidc");

const path = encodeURIComponent(window.location.pathname);
const path = encodeURIComponent(
window.location.pathname.replace(/\/+/g, "/"),
);
const search = encodeURIComponent(qs.toString());
const hash = encodeURIComponent(window.location.hash.substring(1));

Expand Down
4 changes: 3 additions & 1 deletion templates/usr/share/jitsi-meet/body.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
const qs = new URLSearchParams(window.location.search.substring(1));
qs.delete("oidc");

const path = encodeURIComponent(window.location.pathname);
const path = encodeURIComponent(
window.location.pathname.replace(/\/+/g, "/"),
);
const search = encodeURIComponent(qs.toString());
const hash = encodeURIComponent(window.location.hash.substring(1));

Expand Down

0 comments on commit 261a886

Please sign in to comment.