Merge pull request #426 from mamarley/vnstatunderscorefix

luci-app-vnstat: Fix blank graphs for iface names with underscores
This commit is contained in:
Christian Schoenebeck 2015-07-12 18:50:06 +02:00
commit 17ab7acbec

View file

@ -22,7 +22,7 @@ style = (style and #style > 0) and style or "s"
-- --
if iface then if iface then
style = style:gsub("[^%w]", "") style = style:gsub("[^%w]", "")
iface = iface:gsub("[^%w%.%-]", "") iface = iface:gsub("[^%w%.%-%_]", "")
luci.http.prepare_content("image/png") luci.http.prepare_content("image/png")