git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
3553d30
)
modules/admin-core: fix apply actions for configs with hyphens or underscore in the...
author
Jo-Philipp Wich
<redacted>
Tue, 20 Dec 2011 18:31:47 +0000
(18:31 +0000)
committer
Jo-Philipp Wich
<redacted>
Tue, 20 Dec 2011 18:31:47 +0000
(18:31 +0000)
modules/admin-core/luasrc/controller/admin/servicectl.lua
patch
|
blob
|
history
diff --git
a/modules/admin-core/luasrc/controller/admin/servicectl.lua
b/modules/admin-core/luasrc/controller/admin/servicectl.lua
index 83f07d7f2731004c6cfd3ee891c084af935ea4d0..ccd54da764109d05707074670de2c3b4f1cfe9da 100644
(file)
--- 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
git clone https://git.99rst.org/PROJECT