Merge pull request #350 from underscrew/patch-1

Remove disallowed characters in ssid
This commit is contained in:
deltax 2018-01-13 12:35:26 +01:00 committed by GitHub
commit 90f11c3086
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]}