From f3694a14d9c786d0abae3508528642808bb6190b Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Wed, 12 Apr 2023 20:14:21 +0200 Subject: [PATCH] [mirotalksfu] - add filterXSS --- public/views/landing.html | 6 +++++- public/views/newroom.html | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/public/views/landing.html b/public/views/landing.html index 2ca58e4a..5af93469 100644 --- a/public/views/landing.html +++ b/public/views/landing.html @@ -51,6 +51,10 @@ + + + +
@@ -138,7 +142,7 @@ } }; function joinRoom() { - let roomName = document.getElementById('roomName').value; + let roomName = filterXSS(document.getElementById('roomName').value); window.location.href = '/join/' + roomName; } diff --git a/public/views/newroom.html b/public/views/newroom.html index bc3e5316..2abc1ceb 100755 --- a/public/views/newroom.html +++ b/public/views/newroom.html @@ -51,6 +51,10 @@ + + + +
@@ -137,7 +141,7 @@ } }; function joinRoom() { - let roomName = document.getElementById('roomName').value; + let roomName = filterXSS(document.getElementById('roomName').value); window.location.href = '/join/' + roomName; }