luci-app-vnstat: Fix blank graphs for iface names with underscores
[project/luci.git] / applications / luci-app-vnstat / luasrc / view / vnstat.htm
index cfa1a5d..2b50255 100644 (file)
@@ -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")