From d44302b3ac7a5f687c4a2bb6707cc3d922651f82 Mon Sep 17 00:00:00 2001 From: "Philip L. McMahon" Date: Sun, 16 Aug 2020 23:29:01 -0700 Subject: [PATCH] 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 --- .../htdocs/luci-static/resources/statistics/rrdtool.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js index 092dd45522..a0b3fd2c1a 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js @@ -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(