luci-app-statistics: remove rrd path double escape 4340/head
authorPhilip L. McMahon <philip.l.mcmahon@gmail.com>
Sat, 8 Aug 2020 04:20:23 +0000 (21:20 -0700)
committerPhilip L. McMahon <philip.l.mcmahon@gmail.com>
Sat, 8 Aug 2020 04:28:21 +0000 (21:28 -0700)
Fixes rendering errors when RRD file names contain IPv6 addresses and the
colon (":") characters are double-escaped.

Reverts escaping added in #2286 in favor of escaping added in #2657.

Signed-off-by: Philip L. McMahon <philip.l.mcmahon@gmail.com>
applications/luci-app-statistics/luasrc/statistics/rrdtool.lua

index c4ea88de924eaaf97078eaa5742ba38c40f0e75d..d3b5b063709b9bba8dd37eed8181f1fe435c12e7 100644 (file)
@@ -136,7 +136,7 @@ function Graph._generic( self, opts, plugin, plugin_instance, dtype, index )
        function __def(source)
 
                local inst = source.sname
-               local rrd  = source.rrd:gsub(":", "\\:")
+               local rrd  = source.rrd
                local ds   = source.ds
 
                if not ds or ds:len() == 0 then ds = "value" end