[mirotalksfu] - fix XSS, update dep

هذا الالتزام موجود في:
Miroslav Pejic
2023-02-18 09:46:06 +01:00
الأصل 5dd6f48779
التزام 95a4bae0ce
2 ملفات معدلة مع 7 إضافات و4 حذوفات

عرض الملف

@@ -2897,7 +2897,10 @@ class RoomClient {
if (!this.thereIsParticipants()) {
return userLog('info', 'No participants detected', 'top-end');
}
let fileInfo = {
// prevent XSS injection
if (this.isHtml(this.fileToSend.name)) return userLog('warning', 'Invalid file name!', 'top-end', 5000);
const fileInfo = {
peer_id: peer_id,
broadcast: broadcast,
peer_name: this.peer_name,