Merge pull request #4358 from plm/remove-rrd-path-triple-escape
authorHannu Nyman <hannu.nyman@iki.fi>
Tue, 23 Mar 2021 15:30:33 +0000 (17:30 +0200)
committerGitHub <noreply@github.com>
Tue, 23 Mar 2021 15:30:33 +0000 (17:30 +0200)
luci-app-statistics: remove rrd path triple escape

applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js

index 322eee137c8a266bf3c037b2338769c88b7e4c27..19e34e4bc6eae6652ce51117d3a52db7451b27b1 100644 (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(