diff --git a/src/controllers/categories.js b/src/controllers/categories.js index 29ad406f98..844163adb7 100644 --- a/src/controllers/categories.js +++ b/src/controllers/categories.js @@ -24,7 +24,7 @@ categoriesController.list = function (req, res, next) { if (meta.config.description) { res.locals.metaTags.push({ name: 'description', - content: String(meta.config.description || ''), + content: String(meta.config.description), }); } diff --git a/src/meta/tags.js b/src/meta/tags.js index afef4bab0f..fa88fa30b8 100644 --- a/src/meta/tags.js +++ b/src/meta/tags.js @@ -134,7 +134,7 @@ module.exports = function (Meta) { if (!hasDescription && Meta.config.description) { meta.push({ name: 'description', - content: validator.escape(String(Meta.config.description || '')), + content: validator.escape(String(Meta.config.description)), }); } }