完整的添加了对原始请求的token数检查

This commit is contained in:
2023-12-18 01:45:53 +00:00
parent 458c085ac2
commit b7675248c3

View File

@ -162,6 +162,12 @@ io.on('connection', async (socket) => {
socket.emit('response', ret);
}
else{
if(substrings.length!=4)
{
console.log("input has "+substrings.length+" words");
socket.emit('response', "Invalid Input");
return;
}
if(head[1]=='R')
{
if(msg.split('\n').length!=2)