From: Jo-Philipp Wich Date: Tue, 20 Dec 2011 18:31:47 +0000 (+0000) Subject: modules/admin-core: fix apply actions for configs with hyphens or underscore in the... X-Git-Tag: 0.11.0~1204 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=79231d68beedb5ba1bc25a210db0eaadfdc4e5ec;p=oweals%2Fluci.git modules/admin-core: fix apply actions for configs with hyphens or underscore in the name --- 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