increase max special characters
This commit is contained in:
parent
c6db7b86e7
commit
6cfbe1418f
@ -57,7 +57,7 @@ module.exports = {
|
|||||||
|
|
||||||
req.body.message = encodeURIComponent(req.body.message.trim())
|
req.body.message = encodeURIComponent(req.body.message.trim())
|
||||||
|
|
||||||
if(req.body.message.length > 1000) {
|
if(req.body.message.length > 3000) {
|
||||||
res.json({"error":"message too long"}) //check again after URI encoding it
|
res.json({"error":"message too long"}) //check again after URI encoding it
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -55,7 +55,7 @@ module.exports = {
|
|||||||
|
|
||||||
req.body.message = encodeURIComponent(req.body.message.trim())
|
req.body.message = encodeURIComponent(req.body.message.trim())
|
||||||
|
|
||||||
if(req.body.message.length > 1000) {
|
if(req.body.message.length > 3000) {
|
||||||
res.json({"error":"message too long"}) //check again after URI encoding it
|
res.json({"error":"message too long"}) //check again after URI encoding it
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user