wifi sanitizing iface names
This commit is contained in:
+2
-2
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user