mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-06 15:48:43 +02:00
fix for #6004
This commit is contained in:
@@ -60,7 +60,7 @@ module.exports = function (middleware) {
|
||||
bodyClass: data.bodyClass,
|
||||
};
|
||||
|
||||
templateValues.configJSON = JSON.stringify(res.locals.config);
|
||||
templateValues.configJSON = JSON.stringify(res.locals.config).replace(/\\"/g, '\\\\"').replace(/'/g, '\\\'').replace(/<\//g, '<\\/');
|
||||
|
||||
async.waterfall([
|
||||
function (next) {
|
||||
|
||||
Reference in New Issue
Block a user