diff --git a/lib/web/note/controller.js b/lib/web/note/controller.js index 9b943c57..6626782e 100644 --- a/lib/web/note/controller.js +++ b/lib/web/note/controller.js @@ -85,7 +85,7 @@ exports.createFromPOST = function (req, res, next) { let body = '' if (req.body && req.body.length > config.documentMaxLength) { return errors.errorTooLong(res) - } else if (req.body) { + } else if (typeof req.body === 'string') { body = req.body } body = body.replace(/[\r]/g, '')