projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
luci-app-vnstat: Fix blank graphs for iface names with underscores
[project/luci.git]
/
applications
/
luci-app-vnstat
/
luasrc
/
view
/
vnstat.htm
diff --git
a/applications/luci-app-vnstat/luasrc/view/vnstat.htm
b/applications/luci-app-vnstat/luasrc/view/vnstat.htm
index
cfa1a5d
..
2b50255
100644
(file)
--- a/
applications/luci-app-vnstat/luasrc/view/vnstat.htm
+++ b/
applications/luci-app-vnstat/luasrc/view/vnstat.htm
@@
-22,7
+22,7
@@
style = (style and #style > 0) and style or "s"
--
if iface then
style = style:gsub("[^%w]", "")
- iface = iface:gsub("[^%w%.%-]", "")
+ iface = iface:gsub("[^%w%.%-
%_
]", "")
luci.http.prepare_content("image/png")