This commit is contained in:
Julian Lam
2014-02-19 17:23:25 -05:00
parent ea222c4f8a
commit f50d77bca0
7 changed files with 7 additions and 9 deletions

View File

@@ -574,7 +574,6 @@ module.exports.server = server;
function (topicData, next) {
var lastMod = topicData.timestamp,
sanitize = validator.sanitize,
description = (function() {
var content = '';
if(topicData.posts.length) {
@@ -585,7 +584,7 @@ module.exports.server = server;
content = content.substr(0, 255) + '...';
}
return sanitize(content).escape();
return validator.escape(content);
})(),
timestamp;