From: Philip L. McMahon Date: Sat, 8 Aug 2020 04:20:23 +0000 (-0700) Subject: luci-app-statistics: remove rrd path double escape X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e857b539bcfd85a26b3b1b1453a6e69600721dc4;p=project%2Fluci.git luci-app-statistics: remove rrd path double escape 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 --- diff --git a/applications/luci-app-statistics/luasrc/statistics/rrdtool.lua b/applications/luci-app-statistics/luasrc/statistics/rrdtool.lua index c4ea88de92..d3b5b06370 100644 --- a/applications/luci-app-statistics/luasrc/statistics/rrdtool.lua +++ b/applications/luci-app-statistics/luasrc/statistics/rrdtool.lua @@ -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