mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
better check
This commit is contained in:
@@ -148,8 +148,8 @@ process.on('uncaughtException', function(err) {
|
|||||||
|
|
||||||
// Meta Tags
|
// Meta Tags
|
||||||
templateValues.metaTags = defaultMetaTags.concat(options.metaTags || []).map(function(tag) {
|
templateValues.metaTags = defaultMetaTags.concat(options.metaTags || []).map(function(tag) {
|
||||||
if(!tag || !tag.content) {
|
if(!tag || typeof tag.content !== 'string') {
|
||||||
winston.warn('Invalid meta tag. ' + tag);
|
winston.warn('Invalid meta tag. ', tag);
|
||||||
return tag;
|
return tag;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user