Skip to content

Node.js based forum software built for the modern web

better check

Baris Soner Usakli38e4a6c8b068
diff --git a/src/webserver.js b/src/webserver.js
index f4869b4cbf..b7028efc5c 100644
--- a/src/webserver.js
+++ b/src/webserver.js
@@ -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;
}