mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-08 16:42:48 +01:00
escape title in post queue
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
var async = require('async');
|
||||
var validator = require('validator');
|
||||
|
||||
var db = require('../../database');
|
||||
var user = require('../../user');
|
||||
@@ -81,6 +82,7 @@ function getQueuedPosts(ids, callback) {
|
||||
|
||||
async.map(postData, function (postData, next) {
|
||||
postData.data.rawContent = postData.data.content;
|
||||
postData.data.title = validator.escape(String(postData.data.title));
|
||||
async.waterfall([
|
||||
function (next) {
|
||||
if (postData.data.cid) {
|
||||
|
||||
Reference in New Issue
Block a user