Fix sending "+" with websend

Fix sending "+" with websend (#6094)
This commit is contained in:
Theo Arends 2019-07-14 22:25:13 +02:00
parent d77017fd74
commit 22b47fb89b

View File

@ -2329,7 +2329,7 @@ String UrlEncode(const String& text)
encoded += hex[decodedChar & 0xF]; encoded += hex[decodedChar & 0xF];
} }
*/ */
if (' ' == decodedChar) { if ((' ' == decodedChar) || ('+' == decodedChar)) {
encoded += '%'; encoded += '%';
encoded += hex[decodedChar >> 4]; encoded += hex[decodedChar >> 4];
encoded += hex[decodedChar & 0xF]; encoded += hex[decodedChar & 0xF];