Skip to content

Commit

Permalink
fix: throw an error in not a valid path
Browse files Browse the repository at this point in the history
  • Loading branch information
emrahcom committed Oct 12, 2024
1 parent 261a886 commit 61a7817
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
const search = qs.get("search") || "";
const hash = qs.get("hash") || "";

if (!path.match("^/")) throw new Error("invalid path");

let target = `${path}?` +
`${search}${search ? "&" : ""}` +
`oidc=unauthorized` +
Expand Down
2 changes: 2 additions & 0 deletions templates/usr/share/jitsi-meet/static/oidc-adapter.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
const search = qs.get("search") || "";
const hash = qs.get("hash") || "";

if (!path.match("^/")) throw new Error("invalid path");

let target = `${path}?` +
`${search}${search ? "&" : ""}` +
`oidc=unauthorized` +
Expand Down

0 comments on commit 61a7817

Please sign in to comment.