This commit is contained in:
Baris Usakli
2015-01-04 11:37:20 -05:00
committed by Julian Lam
parent 64468a6f16
commit 8522af504a
3 changed files with 6 additions and 5 deletions

View File

@@ -43,13 +43,13 @@ Controllers.home = function(req, res, next) {
header: function (next) {
res.locals.metaTags = [{
name: "title",
content: meta.config.title || 'NodeBB'
content: validator.escape(meta.config.title || 'NodeBB')
}, {
name: "description",
content: meta.config.description || ''
content: validator.escape(meta.config.description || '')
}, {
property: 'og:title',
content: 'Index | ' + (meta.config.title || 'NodeBB')
content: 'Index | ' + validator.escape(meta.config.title || 'NodeBB')
}, {
property: 'og:type',
content: 'website'