another validator.escape fix

v1.18.x
barisusakli 9 years ago
parent 8a847df4fd
commit c8f270ec67

@ -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);
}

Loading…
Cancel
Save