-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add files via upload #1108
Add files via upload #1108
Conversation
app.get('/start',(req,res)=>{ | ||
res.sendFile("start.html" , { root: path.join(__dirname, '/public') }) | ||
}) |
Check failure
Code scanning / CodeQL
Missing rate limiting
app.get('/room/:roodId/:userId',(req,res)=>{ | ||
res.sendFile("room.html",{ root: path.join(__dirname, '/public') }) | ||
}) |
Check failure
Code scanning / CodeQL
Missing rate limiting
function displayLocalText(uid,text){ | ||
const ele = document.createElement('div') | ||
ele.className = "text-box" | ||
ele.innerHTML += `<span class="author">${uid+": "}</span><p>${text}</p>` |
Check warning
Code scanning / CodeQL
DOM text reinterpreted as HTML
if(rid && uid){ | ||
fetch(origin+"/create-room"+`?roomId=${rid}&userId=${uid}`).then(res=>res.json()).then(data=>{ | ||
if(data.status==="success"){ | ||
window.location.href=origin+"/room/"+rid+"/"+uid |
Check warning
Code scanning / CodeQL
DOM text reinterpreted as HTML
if(rid && uid){ | ||
fetch(origin+"/enter-room"+`?roomId=${rid}&userId=${uid}`).then(res=>res.json()).then(data=>{ | ||
if(data.status==="success"){ | ||
window.location.href=origin+"/room/"+rid+"/"+uid |
Check warning
Code scanning / CodeQL
DOM text reinterpreted as HTML
|
||
else if(data.roomId){ | ||
rooms[data.roomId]={} | ||
rooms[data.roomId][data.userId]=conn |
Check warning
Code scanning / CodeQL
Prototype-polluting assignment
Explanation
Fixes #:
Checklist