mirror of
https://github.com/openwrt/luci.git
synced 2026-08-29 06:22:49 +04:00
Merge pull request #426 from mamarley/vnstatunderscorefix
luci-app-vnstat: Fix blank graphs for iface names with underscores
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user