escape body class parts

v1.18.x
barisusakli 8 years ago
parent 3d719eec99
commit 74d2835a1f

@ -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(' ');

Loading…
Cancel
Save