git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
e76caf1
)
luci-app-statistics: escape backslashes as well
author
Jo-Philipp Wich
<redacted>
Tue, 30 Apr 2019 07:08:56 +0000
(09:08 +0200)
committer
Jo-Philipp Wich
<redacted>
Tue, 30 Apr 2019 07:08:56 +0000
(09:08 +0200)
Fixes: bab4a3ef ("luci-app-statistics - allow rrd files to contain :")
Signed-off-by: Jo-Philipp Wich <redacted>
applications/luci-app-statistics/luasrc/statistics/rrdtool.lua
patch
|
blob
|
history
diff --git
a/applications/luci-app-statistics/luasrc/statistics/rrdtool.lua
b/applications/luci-app-statistics/luasrc/statistics/rrdtool.lua
index 29090eed8faf98f0f67672f0eea762eae3d5c324..4586b23caa3b50c00bedcb28d13a5a865cf25924 100644
(file)
--- a/
applications/luci-app-statistics/luasrc/statistics/rrdtool.lua
+++ b/
applications/luci-app-statistics/luasrc/statistics/rrdtool.lua
@@
-62,7
+62,7
@@
function Graph._mkpath( self, plugin, plugin_instance, dtype, dtype_instance )
end
function Graph.mkrrdpath( self, ... )
- return string.format( "%s/%s.rrd", self.opts.rrdpath, s
tring.gsub(self:_mkpath( ... ),
":", "\\:") )
+ return string.format( "%s/%s.rrd", self.opts.rrdpath, s
elf:_mkpath( ... ):gsub("\\", "\\\\"):gsub(
":", "\\:") )
end
function Graph.mkpngpath( self, ... )
git clone https://git.99rst.org/PROJECT