Skip to content

Commit 21bcad7

Browse files
author
joeltaylor
committed
No need to escape, use Jade
1 parent 069ca58 commit 21bcad7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

server/routes/news.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ router.
244244
post('/:slug([a-zA-Z0-9_.-]+)/comment', cookieParser, ensureAuthenticated, parseForm, expressValidator(), csrfProtection, buildComment, function(req, res) {
245245
// TODO: Perhaps this should be done in the buildComment()?
246246
req.sanitize('body').trim();
247-
req.sanitize('body').escape();
248247
req.check('body').notEmpty();
249248

250249

@@ -321,8 +320,6 @@ router.
321320
req.check('body', 'Description is required').notEmpty();
322321
req.check('body', 'Description must be between 100 and 300 characters').len(100,300);
323322

324-
req.sanitize('body').escape();
325-
req.sanitize('title').escape();
326323

327324
var errors = req.validationErrors();
328325

0 commit comments

Comments
 (0)