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