diff --git a/backend/src/api.mjs b/backend/src/api.mjs index a9512fe..230f90b 100644 --- a/backend/src/api.mjs +++ b/backend/src/api.mjs @@ -22,12 +22,13 @@ router.post('/:site/*', utils.limiter(20), (req, res) => { return; } - let comment = { + const comment = { user: utils.escapeHtml(req.body.name) || "Anonymous", user_website: utils.escapeHtml(req.body.website) || null, message: utils.escapeHtml(req.body.message), reply_to: req.body.reply_to || null, }; + console.log(comment); // validation const user_token = req.body.token;