From b60b8380279f575e0c19aad12dfd0ea24852692f Mon Sep 17 00:00:00 2001 From: "Philip L. McMahon" Date: Sat, 27 Mar 2021 11:06:42 +0200 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 (cherry picked from commit d44302b3ac7a5f687c4a2bb6707cc3d922651f82 of PR #4358) --- .../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 322eee137c..19e34e4bc6 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(