luci-app-wol: correctness fixes
authorPaul Donald <redacted>
Mon, 25 May 2026 21:32:15 +0000 (00:32 +0300)
committerPaul Donald <redacted>
Wed, 27 May 2026 12:49:46 +0000 (15:49 +0300)
Signed-off-by: Paul Donald <redacted>
applications/luci-app-wol/root/usr/share/rpcd/ucode/luci.wol

index 7e410a4ad094995937f5b9ef16f059120ead62bf..fd9e9f0485ab6baec96ae089caf1089a6d471c99 100644 (file)
@@ -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');
git clone https://git.99rst.org/PROJECT