Skip to content

Commit d93a0ce

Browse files
wifi sanitizing iface names
1 parent 3c11b22 commit d93a0ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/wifi.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ function wifiNetworks(callback) {
402402
});
403403
if (iface) {
404404
let ifaceSanitized = '';
405-
const s = util.isPrototypePolluted() ? '---' : util.sanitizeShellString(iface);
405+
const s = util.isPrototypePolluted() ? '---' : util.sanitizeShellString(iface, true);
406406
for (let i = 0; i <= util.mathMin(s.length, 2000); i++) {
407407
if (s[i] !== undefined) {
408408
ifaceSanitized = ifaceSanitized + s[i];
@@ -538,7 +538,7 @@ function wifiConnections(callback) {
538538
const networkList = getWifiNetworkListNmi();
539539
ifaces.forEach(ifaceDetail => {
540540
let ifaceSanitized = '';
541-
const s = util.isPrototypePolluted() ? '---' : util.sanitizeShellString(ifaceDetail.iface);
541+
const s = util.isPrototypePolluted() ? '---' : util.sanitizeShellString(ifaceDetail.iface, true);
542542
for (let i = 0; i <= util.mathMin(s.length, 2000); i++) {
543543
if (s[i] !== undefined) {
544544
ifaceSanitized = ifaceSanitized + s[i];

0 commit comments

Comments
 (0)