projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
treewide: filter shell arguments through shellquote() where applicable
[project/luci.git]
/
applications
/
luci-app-ddns
/
luasrc
/
controller
/
ddns.lua
diff --git
a/applications/luci-app-ddns/luasrc/controller/ddns.lua
b/applications/luci-app-ddns/luasrc/controller/ddns.lua
index
3d31e4e
..
5f4a511
100755
(executable)
--- a/
applications/luci-app-ddns/luasrc/controller/ddns.lua
+++ b/
applications/luci-app-ddns/luasrc/controller/ddns.lua
@@
-301,7
+301,7
@@
function startstop(section, enabled)
uci:unload("ddns")
-- start ddns-updater for section
uci:unload("ddns")
-- start ddns-updater for section
- local command =
luci_helper .. [[ -S ]] .. section .. [[ -- start]]
+ local command =
"%s -S %s -- start" %{ luci_helper, UTIL.shellquote(section) }
os.execute(command)
NX.nanosleep(3) -- 3 seconds "show time"
os.execute(command)
NX.nanosleep(3) -- 3 seconds "show time"