完整的添加了对原始请求的token数检查
This commit is contained in:
@ -162,6 +162,12 @@ io.on('connection', async (socket) => {
|
|||||||
socket.emit('response', ret);
|
socket.emit('response', ret);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
if(substrings.length!=4)
|
||||||
|
{
|
||||||
|
console.log("input has "+substrings.length+" words");
|
||||||
|
socket.emit('response', "Invalid Input");
|
||||||
|
return;
|
||||||
|
}
|
||||||
if(head[1]=='R')
|
if(head[1]=='R')
|
||||||
{
|
{
|
||||||
if(msg.split('\n').length!=2)
|
if(msg.split('\n').length!=2)
|
||||||
|
Reference in New Issue
Block a user