luci-app-statistics: remove rrd path triple escape

Fixes rendering errors when RRD file names contain IPv6 addresses and the
colon (":") characters are triple escaped.

Adapts the Lua-specific fix in #4340 to Javascript.

Signed-off-by: Philip L. McMahon <philip.l.mcmahon@gmail.com>
(cherry picked from commit d44302b3ac of PR #4358)
This commit is contained in:
Philip L. McMahon 2021-03-27 11:06:42 +02:00 committed by Hannu Nyman
parent 0907151172
commit b60b838027

View file

@ -376,7 +376,7 @@ return baseclass.extend({
function __def(source) {
var inst = source.sname,
rrd = source.rrd.replace(/[\\:]/g, '\\$&'),
rrd = source.rrd,
ds = source.ds || 'value';
_args.push(