From 22b47fb89b9b44389c71e794a9df81cf2a5a5001 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sun, 14 Jul 2019 22:25:13 +0200 Subject: [PATCH] Fix sending "+" with websend Fix sending "+" with websend (#6094) --- sonoff/xdrv_01_webserver.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonoff/xdrv_01_webserver.ino b/sonoff/xdrv_01_webserver.ino index 23f600525..b445342ff 100644 --- a/sonoff/xdrv_01_webserver.ino +++ b/sonoff/xdrv_01_webserver.ino @@ -2329,7 +2329,7 @@ String UrlEncode(const String& text) encoded += hex[decodedChar & 0xF]; } */ - if (' ' == decodedChar) { + if ((' ' == decodedChar) || ('+' == decodedChar)) { encoded += '%'; encoded += hex[decodedChar >> 4]; encoded += hex[decodedChar & 0xF];