From ce3e1f31ab95580ad1557f356d7013052ea0163a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 24 Oct 2017 17:55:45 -0400 Subject: [PATCH] fix for #6004 --- src/middleware/header.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware/header.js b/src/middleware/header.js index b9eacca002..eb4dd0abaa 100644 --- a/src/middleware/header.js +++ b/src/middleware/header.js @@ -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) {