From: Philip L. McMahon Date: Mon, 17 Aug 2020 06:29:01 +0000 (-0700) Subject: luci-app-statistics: remove rrd path triple escape X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=d44302b3ac7a5f687c4a2bb6707cc3d922651f82;p=openwrt-luci.git 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 --- 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(