summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-vnstat/luasrc/view
diff options
context:
space:
mode:
authorChristian Schoenebeck <christian.schoenebeck@gmail.com>2015-07-12 18:50:06 +0200
committerChristian Schoenebeck <christian.schoenebeck@gmail.com>2015-07-12 18:50:06 +0200
commit17ab7acbec0fbb6ecf96fd82fec4ee4f6869d48a (patch)
tree70a64768190bb44f348020b30bc7feb8c29b4005 /applications/luci-app-vnstat/luasrc/view
parent6d788d82f139ba10b08384fba42f25d13bd6f47a (diff)
parentb1b0ba5ba96c0ed3375cd1bf1792bd1548a8fab1 (diff)
Merge pull request #426 from mamarley/vnstatunderscorefix
luci-app-vnstat: Fix blank graphs for iface names with underscores
Diffstat (limited to 'applications/luci-app-vnstat/luasrc/view')
-rw-r--r--applications/luci-app-vnstat/luasrc/view/vnstat.htm2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-vnstat/luasrc/view/vnstat.htm b/applications/luci-app-vnstat/luasrc/view/vnstat.htm
index cfa1a5de51..2b502559b8 100644
--- 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")