[mirotalksfu] - add more unit tests, improvements, update dep
هذا الالتزام موجود في:
@@ -1,10 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
const checkXSS = require('./XSS.js');
|
||||
|
||||
function isValidRoomName(input) {
|
||||
if (typeof input !== 'string') {
|
||||
return false;
|
||||
}
|
||||
return !hasPathTraversal(input);
|
||||
const room = checkXSS(input);
|
||||
return !room ? false : !hasPathTraversal(room);
|
||||
}
|
||||
|
||||
function isValidRecFileNameFormat(input) {
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم