From d93a0ce510b861b4f65f888a81b12108ddc82db3 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Tue, 19 Sep 2023 16:10:24 +0200 Subject: [PATCH] wifi sanitizing iface names --- lib/wifi.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/wifi.js b/lib/wifi.js index eb3dcddb..ea6a4f59 100644 --- a/lib/wifi.js +++ b/lib/wifi.js @@ -402,7 +402,7 @@ function wifiNetworks(callback) { }); if (iface) { let ifaceSanitized = ''; - const s = util.isPrototypePolluted() ? '---' : util.sanitizeShellString(iface); + const s = util.isPrototypePolluted() ? '---' : util.sanitizeShellString(iface, true); for (let i = 0; i <= util.mathMin(s.length, 2000); i++) { if (s[i] !== undefined) { ifaceSanitized = ifaceSanitized + s[i]; @@ -538,7 +538,7 @@ function wifiConnections(callback) { const networkList = getWifiNetworkListNmi(); ifaces.forEach(ifaceDetail => { let ifaceSanitized = ''; - const s = util.isPrototypePolluted() ? '---' : util.sanitizeShellString(ifaceDetail.iface); + const s = util.isPrototypePolluted() ? '---' : util.sanitizeShellString(ifaceDetail.iface, true); for (let i = 0; i <= util.mathMin(s.length, 2000); i++) { if (s[i] !== undefined) { ifaceSanitized = ifaceSanitized + s[i];