summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-12-20 18:31:47 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-12-20 18:31:47 +0000
commit79231d68beedb5ba1bc25a210db0eaadfdc4e5ec (patch)
treec9afe7dd5e95a5e4b9ba068c2364f5bb36be4c29 /modules
parent3553d308f65a037d7cef2f0c7546db44c23afa14 (diff)
modules/admin-core: fix apply actions for configs with hyphens or underscore in the name
Diffstat (limited to 'modules')
-rw-r--r--modules/admin-core/luasrc/controller/admin/servicectl.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/admin-core/luasrc/controller/admin/servicectl.lua b/modules/admin-core/luasrc/controller/admin/servicectl.lua
index 83f07d7f2..ccd54da76 100644
--- a/modules/admin-core/luasrc/controller/admin/servicectl.lua
+++ b/modules/admin-core/luasrc/controller/admin/servicectl.lua
@@ -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