mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
another validator.escape fix
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user