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];