diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2018-01-29 22:55:13 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2018-01-29 22:55:13 +0200 |
commit | 6be273f30f338ffaa63bd4b2340c63d3bff8baea (patch) | |
tree | 001168870db791330085a64305c8c5140514d627 /web | |
parent | 2ebee50887027f4ed4a4c736d6aa5b32b571f020 (diff) |
escape alarm expressions to avoid them being detected as xss
Diffstat (limited to 'web')
-rw-r--r-- | web/dashboard.js | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/web/dashboard.js b/web/dashboard.js index 8b950b3b3f..56196cfc3e 100644 --- a/web/dashboard.js +++ b/web/dashboard.js @@ -111,7 +111,6 @@ var NETDATA = window.NETDATA || {}; string: function (s) { if (typeof s === 'string' || typeof s === 'number' || typeof s === 'boolean') return s.toString() - .replace(/&/g, '&') .replace(/</g, '<') .replace(/>/g, '>') .replace(/"/g, '"') |