luci-app-wol: correctness fixes

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
Paul Donald
2026-05-26 00:32:15 +03:00
parent e581262ba8
commit 7e0faa81d2
@@ -38,7 +38,7 @@ const methods = {
call: function(request) {
const result = {};
if (request.args.name == etherwake || request.args.name == wakeonlan) {
parts = map(request.args.args, shellquote);
let parts = map(request.args.args, shellquote);
const fd = popen(request.args.name + ' ' + join(' ', parts));
result.stdout = fd.read('all');