mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
make sure validator.escape() receives strings only
This commit is contained in:
@@ -119,7 +119,7 @@ groupsController.members = function(req, res, next) {
|
||||
|
||||
var breadcrumbs = helpers.buildBreadcrumbs([
|
||||
{text: '[[pages:groups]]', url: '/groups' },
|
||||
{text: validator.escape(groupName), url: '/groups/' + req.params.slug},
|
||||
{text: validator.escape(String(groupName)), url: '/groups/' + req.params.slug},
|
||||
{text: '[[groups:details.members]]'}
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user