nodebb-plugin-composer-default 9.2.3 → 9.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/library.js +1 -1
- package/package.json +1 -1
package/library.js
CHANGED
|
@@ -188,7 +188,7 @@ plugin.filterComposerBuild = async function (hookData) {
|
|
|
188
188
|
}
|
|
189
189
|
globalPrivileges['topics:tag'] = canTagTopics;
|
|
190
190
|
const cid = parseInt(req.query.cid, 10);
|
|
191
|
-
const topicTitle = topicData && topicData.title ? topicData.title.replace(/%/g, '%').replace(/,/g, ',') : (req.query.title || '');
|
|
191
|
+
const topicTitle = topicData && topicData.title ? topicData.title.replace(/%/g, '%').replace(/,/g, ',') : validator.escape(String(req.query.title || ''));
|
|
192
192
|
return {
|
|
193
193
|
req: req,
|
|
194
194
|
res: res,
|