mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-06 01:18:35 +02:00
escape post content
This commit is contained in:
@@ -81,7 +81,7 @@ function getQueuedPosts(ids, callback) {
|
||||
});
|
||||
|
||||
async.map(postData, function (postData, next) {
|
||||
postData.data.rawContent = postData.data.content;
|
||||
postData.data.rawContent = validator.escape(String(postData.data.content));
|
||||
postData.data.title = validator.escape(String(postData.data.title));
|
||||
async.waterfall([
|
||||
function (next) {
|
||||
|
||||
Reference in New Issue
Block a user