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>
This commit is contained in:
parent
93a38d406c
commit
d44302b3ac
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue