From c8f270ec679e4353f0fcf65dc80a32b7c8fa37f7 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sat, 27 Aug 2016 02:01:37 +0300 Subject: [PATCH] another validator.escape fix --- src/posts/summary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/posts/summary.js b/src/posts/summary.js index 32651b67c1..a245a41b29 100644 --- a/src/posts/summary.js +++ b/src/posts/summary.js @@ -86,7 +86,7 @@ module.exports = function(Posts) { if (options.stripTags) { post.content = stripTags(post.content); } - post.content = post.content ? validator.escape(post.content) : post.content; + post.content = post.content ? validator.escape(String(post.content)) : post.content; return next(null, post); }