Skip to content

Node.js based forum software built for the modern web

fixed merge conflict

psychobunny4435a20d908a
diff --cc src/webserver.js
index f3f07b9205,b4d5afe7b6..701b5a610c
--- a/src/webserver.js
+++ b/src/webserver.js
@@@ -176,7 -147,12 +176,12 @@@ process.on('uncaughtException', functio
var uid = '0';
// Meta Tags
- templateValues.metaTags = defaultMetaTags.concat(options.metaTags || []).map(function(tag) {
+ /*templateValues.metaTags = defaultMetaTags.concat(options.metaTags || []).map(function(tag) {
+ if(!tag || typeof tag.content !== 'string') {
+ winston.warn('Invalid meta tag. ', tag);
+ return tag;
+ }
+
tag.content = tag.content.replace(/[&<>'"]/g, function(tag) {
return escapeList[tag] || tag;
});