mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 10:46:14 +01:00
Fix tests
This commit is contained in:
@@ -12,7 +12,7 @@ function escapeTitle(topicData) {
|
||||
return;
|
||||
}
|
||||
if (topicData.title) {
|
||||
topicData.title = translator.escape(validator.escape(topicData.title));
|
||||
topicData.title = translator.escape(validator.escape(topicData.title.toString()));
|
||||
}
|
||||
if (topicData.titleRaw) {
|
||||
topicData.titleRaw = translator.escape(topicData.titleRaw);
|
||||
@@ -27,7 +27,7 @@ module.exports = function (Topics) {
|
||||
}
|
||||
|
||||
if (field === 'title') {
|
||||
value = translator.escape(validator.escape(value));
|
||||
value = translator.escape(validator.escape(String(value)));
|
||||
}
|
||||
callback(null, value);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user