[mirotalksfu] - add filterXSS
هذا الالتزام موجود في:
@@ -51,6 +51,10 @@
|
|||||||
|
|
||||||
<script src="https://unpkg.com/animejs@3.0.1/lib/anime.min.js"></script>
|
<script src="https://unpkg.com/animejs@3.0.1/lib/anime.min.js"></script>
|
||||||
<script src="https://unpkg.com/scrollreveal@4.0.0/dist/scrollreveal.min.js"></script>
|
<script src="https://unpkg.com/scrollreveal@4.0.0/dist/scrollreveal.min.js"></script>
|
||||||
|
|
||||||
|
<!-- xss -->
|
||||||
|
|
||||||
|
<script src="https://rawgit.com/leizongmin/js-xss/master/dist/xss.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body class="is-boxed has-animations">
|
<body class="is-boxed has-animations">
|
||||||
<div class="body-wrap">
|
<div class="body-wrap">
|
||||||
@@ -138,7 +142,7 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
function joinRoom() {
|
function joinRoom() {
|
||||||
let roomName = document.getElementById('roomName').value;
|
let roomName = filterXSS(document.getElementById('roomName').value);
|
||||||
window.location.href = '/join/' + roomName;
|
window.location.href = '/join/' + roomName;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -51,6 +51,10 @@
|
|||||||
|
|
||||||
<script src="https://unpkg.com/animejs@3.0.1/lib/anime.min.js"></script>
|
<script src="https://unpkg.com/animejs@3.0.1/lib/anime.min.js"></script>
|
||||||
<script src="https://unpkg.com/scrollreveal@4.0.0/dist/scrollreveal.min.js"></script>
|
<script src="https://unpkg.com/scrollreveal@4.0.0/dist/scrollreveal.min.js"></script>
|
||||||
|
|
||||||
|
<!-- xss -->
|
||||||
|
|
||||||
|
<script src="https://rawgit.com/leizongmin/js-xss/master/dist/xss.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body class="is-boxed has-animations">
|
<body class="is-boxed has-animations">
|
||||||
<div class="body-wrap">
|
<div class="body-wrap">
|
||||||
@@ -137,7 +141,7 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
function joinRoom() {
|
function joinRoom() {
|
||||||
let roomName = document.getElementById('roomName').value;
|
let roomName = filterXSS(document.getElementById('roomName').value);
|
||||||
window.location.href = '/join/' + roomName;
|
window.location.href = '/join/' + roomName;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم