Fixed "space" bug in AP code
Fixed bug in which Access Point was not properly translating a '+' sign to a space when processing HTML forms.
This commit is contained in:
parent
36499f35ab
commit
2e9539a115
|
|
@ -403,7 +403,8 @@ int Network::getFormValue(char *formData, const char *tag, char *value, int maxS
|
|||
sscanf(v,"%2x",(unsigned int *)value++);
|
||||
v+=2;
|
||||
} else {
|
||||
*value++=*v++;
|
||||
*value++=(*v=='+'?' ':*v); // HTML Forms use '+' for spaces (and '+' signs are escaped)
|
||||
v++;
|
||||
}
|
||||
len++;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ void setup() {
|
|||
new SpanUserCommand('e',"- My second Description",userCom2);
|
||||
|
||||
homeSpan.enableAutoStartAP();
|
||||
homeSpan.setApFunction(myWiFiAP);
|
||||
// homeSpan.setApFunction(myWiFiAP);
|
||||
|
||||
homeSpan.begin(Category::Lighting,"HomeSpan Lamp Server","homespan");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue