From 7c7be2e0c15a62f054a06d8949b298eee4dc7b39 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 31 Oct 2014 19:21:37 -0400 Subject: [PATCH] closes #2337 --- src/meta/title.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/meta/title.js b/src/meta/title.js index 735a3558c7..0ee41072a2 100644 --- a/src/meta/title.js +++ b/src/meta/title.js @@ -28,6 +28,9 @@ module.exports = function(Meta) { if (err) { title = Meta.config.browserTitle || 'NodeBB'; } else { + if (title) { + title = validator.escape(title); + } title = (title ? title + ' | ' : '') + (Meta.config.browserTitle || 'NodeBB'); }