summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
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