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 83f07d7f2731004c6cfd3ee891c084af935ea4d0..ccd54da764109d05707074670de2c3b4f1cfe9da 100644 (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