modules/admin-core: fix apply actions for configs with hyphens or underscore in the name
This commit is contained in:
parent
3553d308f6
commit
79231d68be
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ function action_restart()
|
|||
local service
|
||||
local services = { }
|
||||
|
||||
for service in luci.dispatcher.context.requestpath[3]:gmatch("%w+") do
|
||||
for service in luci.dispatcher.context.requestpath[3]:gmatch("[%w_-]+") do
|
||||
services[#services+1] = service
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue