Skip to content

Commit

Permalink
wifi sanitizing iface names
Browse files Browse the repository at this point in the history
  • Loading branch information
sebhildebrandt committed Sep 19, 2023
1 parent 3c11b22 commit d93a0ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/wifi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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];
Expand Down

0 comments on commit d93a0ce

Please sign in to comment.