From 170126680b59f1875a7bdd34175e04fff3fd044b Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 4 Jun 2015 13:42:10 -0400 Subject: [PATCH] #3213 --- src/middleware/admin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware/admin.js b/src/middleware/admin.js index 5b3f4c186d..ca02878335 100644 --- a/src/middleware/admin.js +++ b/src/middleware/admin.js @@ -96,7 +96,7 @@ middleware.renderHeader = function(req, res, next) { relative_path: nconf.get('relative_path'), configJSON: JSON.stringify(results.config), user: userData, - userJSON: JSON.stringify(userData), + userJSON: JSON.stringify(userData).replace(/'/g, "\\'"), plugins: results.custom_header.plugins, authentication: results.custom_header.authentication, scripts: results.scripts,