Node.js based forum software built for the modern web
check for valid content, #1884
barisusakli238d6602a208
diff --git a/src/posts.js b/src/posts.jsindex fb7f57597b..15f6b7dbf8 100644--- a/src/posts.js+++ b/src/posts.js@@ -282,7 +282,7 @@ var async = require('async'),post.category = results.topicCategory.category;post.index = results.index;- if (options.stripTags) {+ if (options.stripTags && results.content) {var s = S(results.content);post.content = s.stripTags.apply(s, utils.stripTags).s;} else {