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