Merge pull request #426 from mamarley/vnstatunderscorefix
luci-app-vnstat: Fix blank graphs for iface names with underscores
This commit is contained in:
commit
17ab7acbec
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue