escape topic title and category name

v1.18.x
Barış Soner Uşaklı 10 years ago
parent 3deb423c55
commit 5f47f2226a

@ -212,7 +212,7 @@ middleware.buildBreadcrumbs = function(req, res, next) {
}
breadcrumbs.unshift({
text: data.name,
text: validator.escape(data.name),
url: nconf.get('relative_path') + '/category/' + data.slug
});
@ -242,7 +242,7 @@ middleware.buildBreadcrumbs = function(req, res, next) {
if (req.params.topic_id) {
topics.getTopicFields(parseInt(req.params.topic_id, 10), ['cid', 'title', 'slug'], function(err, data) {
breadcrumbs.unshift({
text: data.title,
text: validator.escape(data.title),
url: nconf.get('relative_path') + '/topic/' + data.slug
});

Loading…
Cancel
Save