Skip to content

Commit

Permalink
Fix header url param to not render html
Browse files Browse the repository at this point in the history
- PR billchurch#346 submitted by Eric to the original repo fixes xss bug
  • Loading branch information
dfajfb committed Jan 26, 2024
1 parent 64e8699 commit 33a1432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/client/src/js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ socket.on('headerBackground', (data: string) => {

socket.on('header', (data: string) => {
if (data) {
header.innerHTML = data;
header.textContent = data;
header.style.display = 'block';
// header is 19px and footer is 19px, recaculate new terminal-container and resize
terminalContainer.style.height = 'calc(100% - 38px)';
Expand Down

0 comments on commit 33a1432

Please sign in to comment.