Fix little bug in length limit
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
This commit is contained in:
parent
ffc28e06f3
commit
c03b42d5d4
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ function newNote (req, res, next) {
|
|||
var body = ''
|
||||
if (req.body && req.body.length > config.documentMaxLength) {
|
||||
return response.errorTooLong(res)
|
||||
} else {
|
||||
} else if (req.body) {
|
||||
body = req.body
|
||||
}
|
||||
body = body.replace(/[\r]/g, '')
|
||||
|
|
Loading…
Reference in a new issue