mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 10:46:14 +01:00
make sure validator.escape() receives strings only
This commit is contained in:
@@ -137,7 +137,7 @@ module.exports = function(Categories) {
|
||||
teaser.tid = teaser.uid = teaser.user.uid = undefined;
|
||||
teaser.topic = {
|
||||
slug: topicData[index].slug,
|
||||
title: validator.escape(topicData[index].title)
|
||||
title: validator.escape(String(topicData[index].title))
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user