mirror of
https://github.com/openwrt/luci.git
synced 2026-05-31 02:21:50 +08:00
luci-app-wol: correctness fixes
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user