modules/admin-core: fix apply actions for configs with hyphens or underscore in the name

This commit is contained in:
Jo-Philipp Wich 2011-12-20 18:31:47 +00:00
parent 3553d308f6
commit 79231d68be

View file

@ -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