modules/admin-core: fix apply actions for configs with hyphens or underscore in the...
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 20 Dec 2011 18:31:47 +0000 (18:31 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 20 Dec 2011 18:31:47 +0000 (18:31 +0000)
modules/admin-core/luasrc/controller/admin/servicectl.lua

index 83f07d7..ccd54da 100644 (file)
@@ -38,7 +38,7 @@ function action_restart()
                local service
                local services = { }
 
                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
 
                        services[#services+1] = service
                end