mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-04 02:48:13 +10:00
+ to space url decoding fix
This commit is contained in:
+4
-3
@@ -274,7 +274,6 @@ String WiFiManager::urldecode(const char *src)
|
||||
String decoded = "";
|
||||
char a, b;
|
||||
while (*src) {
|
||||
|
||||
if ((*src == '%') &&
|
||||
((a = src[1]) && (b = src[2])) &&
|
||||
(isxdigit(a) && isxdigit(b))) {
|
||||
@@ -293,8 +292,10 @@ String WiFiManager::urldecode(const char *src)
|
||||
|
||||
decoded += char(16*a+b);
|
||||
src+=3;
|
||||
}
|
||||
else {
|
||||
} else if (*src == '+') {
|
||||
decoded += ' ';
|
||||
*src++;
|
||||
} else {
|
||||
decoded += *src;
|
||||
*src++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user