Remove disallowed characters in ssid

This commit is contained in:
underscrew 2018-01-12 21:46:11 -02:00 committed by GitHub
parent 2d16283e46
commit 578c65af94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -664,7 +664,7 @@ function fluxion_set_target_ap() {
# Parse any non-ascii characters by letting bash handle them. # Parse any non-ascii characters by letting bash handle them.
# Just escape all single quotes in ESSID and let bash's $'...' handle it. # Just escape all single quotes in ESSID and let bash's $'...' handle it.
local sanitizedESSID=$(echo "${candidateAPInfo//\'/\\\'}" | cut -d , -f 14) local sanitizedESSID=$(echo "${candidateAPInfo//\'/\\\'}" | cut -d , -f 14 | tr -d "'" | tr -d "\"" | tr -d "<" | tr -d ">" | tr -d "&")
TargetAPCandidatesESSID[i]=$(eval "echo \$'$sanitizedESSID'") TargetAPCandidatesESSID[i]=$(eval "echo \$'$sanitizedESSID'")
local power=${TargetAPCandidatesPower[i]} local power=${TargetAPCandidatesPower[i]}