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>
This commit is contained in:
Philip L. McMahon 2020-08-16 23:29:01 -07:00
parent 93a38d406c
commit d44302b3ac

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(