Merge pull request #426 from mamarley/vnstatunderscorefix
authorChristian Schoenebeck <christian.schoenebeck@gmail.com>
Sun, 12 Jul 2015 16:50:06 +0000 (18:50 +0200)
committerChristian Schoenebeck <christian.schoenebeck@gmail.com>
Sun, 12 Jul 2015 16:50:06 +0000 (18:50 +0200)
luci-app-vnstat: Fix blank graphs for iface names with underscores

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")