diff --git a/src/controllers/admin.js b/src/controllers/admin.js index e5f0461785..4c0fe059ab 100644 --- a/src/controllers/admin.js +++ b/src/controllers/admin.js @@ -195,7 +195,7 @@ adminController.logs.get = function(req, res, next) { } res.render('admin/advanced/logs', { - data: data.toString() + data: validator.escape(data.toString()) }); }); }; diff --git a/src/views/admin/advanced/logs.tpl b/src/views/admin/advanced/logs.tpl index 52719cd47f..e4f8d2b2fc 100644 --- a/src/views/admin/advanced/logs.tpl +++ b/src/views/admin/advanced/logs.tpl @@ -3,7 +3,7 @@
{data}
+ {data}