summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js
diff options
context:
space:
mode:
authorPhilip L. McMahon <philip.l.mcmahon@gmail.com>2020-08-16 23:29:01 -0700
committerPhilip L. McMahon <philip.l.mcmahon@gmail.com>2020-08-16 23:57:34 -0700
commitd44302b3ac7a5f687c4a2bb6707cc3d922651f82 (patch)
tree768009a1eaceb8615b0d02556858de9e1045ea6a /applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js
parent93a38d406c83d2c141376da89543b15af4921ada (diff)
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>
Diffstat (limited to 'applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js')
-rw-r--r--applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js2
1 files changed, 1 insertions, 1 deletions
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(