Fixed WiFi Access Point Password Bug
Updated Network::getFormData() to properly read special characters (!#$, etc.) input into Access Point web page as part of password of SSID.
This commit is contained in:
parent
eae2037a33
commit
8d55d0a60e
|
|
@ -398,9 +398,15 @@ int Network::getFormValue(char *formData, const char *tag, char *value, int maxS
|
|||
int len=0; // track length of value
|
||||
|
||||
while(*v!='\0' && *v!='&' && len<maxSize){ // copy the value until null, '&', or maxSize is reached
|
||||
len++;
|
||||
if(*v=='%'){ // this is an escaped character of form %XX
|
||||
v++;
|
||||
sscanf(v,"%2x",value++);
|
||||
v+=2;
|
||||
} else {
|
||||
*value++=*v++;
|
||||
}
|
||||
len++;
|
||||
}
|
||||
|
||||
*value='\0'; // add terminating null
|
||||
return(len);
|
||||
|
|
|
|||
Loading…
Reference in New Issue