wifi sanitizing iface names
This commit is contained in:
parent
3c11b2200d
commit
d93a0ce510
@ -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];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user