mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
escape body class parts
This commit is contained in:
@@ -123,7 +123,7 @@ module.exports = function (middleware) {
|
|||||||
winston.error(err.message);
|
winston.error(err.message);
|
||||||
p = '';
|
p = '';
|
||||||
}
|
}
|
||||||
|
p = validator.escape(String(p));
|
||||||
parts[index] = index ? parts[0] + '-' + p : 'page-' + (p || 'home');
|
parts[index] = index ? parts[0] + '-' + p : 'page-' + (p || 'home');
|
||||||
});
|
});
|
||||||
return parts.join(' ');
|
return parts.join(' ');
|
||||||
|
|||||||
Reference in New Issue
Block a user