Skip to content
This repository was archived by the owner on Jan 29, 2023. It is now read-only.

Commit 07000c7

Browse files
authored
v1.4.3 to fix decoding error bug
### Releases v1.4.3 1. Fix decoding error bug when using special `&` in data fields. Check [Decoding Error. two times called urlDecode in Parsing-impl.h. #17](khoih-prog/WiFiWebServer#17)
1 parent f39030a commit 07000c7

22 files changed

+70
-158
lines changed

src/EthernetHttpClient_SSL_STM32.h

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,17 @@
88
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
99
Licensed under MIT license
1010
11-
Version: 1.4.2
11+
Version: 1.4.3
1212
1313
Version Modified By Date Comments
1414
------- ----------- ---------- -----------
1515
1.1.0 K Hoang 14/11/2020 Initial coding for STM32F/L/H/G/WB/MP1 to support Ethernet shields using SSL. Supporting BI LAN8742A,
1616
W5x00 using Ethernetx, ENC28J60 using EthernetENC and UIPEthernet libraries
17-
1.1.1 K Hoang 18/11/2020 Permit sites with "Chain could not be linked to a trust anchor" such as ThingStream
18-
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
19-
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
20-
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
21-
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
22-
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
17+
...
2318
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
2419
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
2520
1.4.2 K Hoang 11/01/2022 Fix libb64 fallthrough compile warning
21+
1.4.3 K Hoang 02/03/2022 Fix decoding error bug
2622
*************************************************************************************************************************************/
2723

2824
// Library to simplify HTTP fetching on Arduino

src/EthernetWebServer_SSL_STM32-impl.h

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,17 @@
1111
1212
Licensed under MIT license
1313
14-
Version: 1.4.2
14+
Version: 1.4.3
1515
1616
Version Modified By Date Comments
1717
------- ----------- ---------- -----------
1818
1.1.0 K Hoang 14/11/2020 Initial coding for STM32F/L/H/G/WB/MP1 to support Ethernet shields using SSL. Supporting BI LAN8742A,
1919
W5x00 using Ethernetx, ENC28J60 using EthernetENC and UIPEthernet libraries
20-
1.1.1 K Hoang 18/11/2020 Permit sites with "Chain could not be linked to a trust anchor" such as ThingStream
21-
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
22-
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
23-
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
24-
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
25-
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
20+
...
2621
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
2722
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
2823
1.4.2 K Hoang 11/01/2022 Fix libb64 fallthrough compile warning
24+
1.4.3 K Hoang 02/03/2022 Fix decoding error bug
2925
*************************************************************************************************************************************/
3026

3127
#pragma once

src/EthernetWebServer_SSL_STM32.h

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,17 @@
1111
1212
Licensed under MIT license
1313
14-
Version: 1.4.2
14+
Version: 1.4.3
1515
1616
Version Modified By Date Comments
1717
------- ----------- ---------- -----------
1818
1.1.0 K Hoang 14/11/2020 Initial coding for STM32F/L/H/G/WB/MP1 to support Ethernet shields using SSL. Supporting BI LAN8742A,
1919
W5x00 using Ethernetx, ENC28J60 using EthernetENC and UIPEthernet libraries
20-
1.1.1 K Hoang 18/11/2020 Permit sites with "Chain could not be linked to a trust anchor" such as ThingStream
21-
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
22-
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
23-
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
24-
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
25-
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
20+
...
2621
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
2722
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
2823
1.4.2 K Hoang 11/01/2022 Fix libb64 fallthrough compile warning
24+
1.4.3 K Hoang 02/03/2022 Fix decoding error bug
2925
*************************************************************************************************************************************/
3026

3127
#pragma once
@@ -36,13 +32,13 @@
3632
#error This code is designed to run on STM32F/L/H/G/WB/MP1 platform! Please check your Tools->Board setting.
3733
#endif
3834

39-
#define ETHERNET_WEBSERVER_SSL_STM32_VERSION "EthernetWebServer_SSL_STM32 v1.4.2"
35+
#define ETHERNET_WEBSERVER_SSL_STM32_VERSION "EthernetWebServer_SSL_STM32 v1.4.3"
4036

4137
#define ETHERNET_WEBSERVER_SSL_STM32_VERSION_MAJOR 1
4238
#define ETHERNET_WEBSERVER_SSL_STM32_VERSION_MINOR 4
43-
#define ETHERNET_WEBSERVER_SSL_STM32_VERSION_PATCH 2
39+
#define ETHERNET_WEBSERVER_SSL_STM32_VERSION_PATCH 3
4440

45-
#define ETHERNET_WEBSERVER_SSL_STM32_VERSION_INT 1004002
41+
#define ETHERNET_WEBSERVER_SSL_STM32_VERSION_INT 1004003
4642

4743
#define USE_NEW_WEBSERVER_VERSION true
4844

src/Ethernet_HTTPClient/Ethernet_HttpClient.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,17 @@
1111
1212
Licensed under MIT license
1313
14-
Version: 1.4.2
14+
Version: 1.4.3
1515
1616
Version Modified By Date Comments
1717
------- ----------- ---------- -----------
1818
1.1.0 K Hoang 14/11/2020 Initial coding for STM32F/L/H/G/WB/MP1 to support Ethernet shields using SSL. Supporting BI LAN8742A,
1919
W5x00 using Ethernetx, ENC28J60 using EthernetENC and UIPEthernet libraries
20-
1.1.1 K Hoang 18/11/2020 Permit sites with "Chain could not be linked to a trust anchor" such as ThingStream
21-
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
22-
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
23-
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
24-
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
25-
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
20+
...
2621
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
2722
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
2823
1.4.2 K Hoang 11/01/2022 Fix libb64 fallthrough compile warning
24+
1.4.3 K Hoang 02/03/2022 Fix decoding error bug
2925
*************************************************************************************************************************************/
3026

3127
// Class to simplify HTTP fetching on Arduino

src/Ethernet_HTTPClient/Ethernet_HttpClient.h

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,17 @@
1111
1212
Licensed under MIT license
1313
14-
Version: 1.4.2
14+
Version: 1.4.3
1515
1616
Version Modified By Date Comments
1717
------- ----------- ---------- -----------
1818
1.1.0 K Hoang 14/11/2020 Initial coding for STM32F/L/H/G/WB/MP1 to support Ethernet shields using SSL. Supporting BI LAN8742A,
1919
W5x00 using Ethernetx, ENC28J60 using EthernetENC and UIPEthernet libraries
20-
1.1.1 K Hoang 18/11/2020 Permit sites with "Chain could not be linked to a trust anchor" such as ThingStream
21-
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
22-
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
23-
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
24-
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
25-
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
20+
...
2621
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
2722
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
2823
1.4.2 K Hoang 11/01/2022 Fix libb64 fallthrough compile warning
24+
1.4.3 K Hoang 02/03/2022 Fix decoding error bug
2925
*************************************************************************************************************************************/
3026

3127
// Class to simplify HTTP fetching on Arduino

src/Ethernet_HTTPClient/Ethernet_URLEncoder.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,17 @@
1111
1212
Licensed under MIT license
1313
14-
Version: 1.4.2
14+
Version: 1.4.3
1515
1616
Version Modified By Date Comments
1717
------- ----------- ---------- -----------
1818
1.1.0 K Hoang 14/11/2020 Initial coding for STM32F/L/H/G/WB/MP1 to support Ethernet shields using SSL. Supporting BI LAN8742A,
1919
W5x00 using Ethernetx, ENC28J60 using EthernetENC and UIPEthernet libraries
20-
1.1.1 K Hoang 18/11/2020 Permit sites with "Chain could not be linked to a trust anchor" such as ThingStream
21-
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
22-
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
23-
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
24-
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
25-
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
20+
...
2621
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
2722
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
2823
1.4.2 K Hoang 11/01/2022 Fix libb64 fallthrough compile warning
24+
1.4.3 K Hoang 02/03/2022 Fix decoding error bug
2925
*************************************************************************************************************************************/
3026

3127
// Library to simplify HTTP fetching on Arduino

src/Ethernet_HTTPClient/Ethernet_URLEncoder.h

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,17 @@
1111
1212
Licensed under MIT license
1313
14-
Version: 1.4.2
14+
Version: 1.4.3
1515
1616
Version Modified By Date Comments
1717
------- ----------- ---------- -----------
1818
1.1.0 K Hoang 14/11/2020 Initial coding for STM32F/L/H/G/WB/MP1 to support Ethernet shields using SSL. Supporting BI LAN8742A,
1919
W5x00 using Ethernetx, ENC28J60 using EthernetENC and UIPEthernet libraries
20-
1.1.1 K Hoang 18/11/2020 Permit sites with "Chain could not be linked to a trust anchor" such as ThingStream
21-
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
22-
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
23-
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
24-
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
25-
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
20+
...
2621
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
2722
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
2823
1.4.2 K Hoang 11/01/2022 Fix libb64 fallthrough compile warning
24+
1.4.3 K Hoang 02/03/2022 Fix decoding error bug
2925
*************************************************************************************************************************************/
3026

3127
// Library to simplify HTTP fetching on Arduino

src/Ethernet_HTTPClient/Ethernet_WebSocketClient.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,17 @@
1111
1212
Licensed under MIT license
1313
14-
Version: 1.4.2
14+
Version: 1.4.3
1515
1616
Version Modified By Date Comments
1717
------- ----------- ---------- -----------
1818
1.1.0 K Hoang 14/11/2020 Initial coding for STM32F/L/H/G/WB/MP1 to support Ethernet shields using SSL. Supporting BI LAN8742A,
1919
W5x00 using Ethernetx, ENC28J60 using EthernetENC and UIPEthernet libraries
20-
1.1.1 K Hoang 18/11/2020 Permit sites with "Chain could not be linked to a trust anchor" such as ThingStream
21-
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
22-
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
23-
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
24-
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
25-
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
20+
...
2621
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
2722
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
2823
1.4.2 K Hoang 11/01/2022 Fix libb64 fallthrough compile warning
24+
1.4.3 K Hoang 02/03/2022 Fix decoding error bug
2925
*************************************************************************************************************************************/
3026

3127
// (c) Copyright Arduino. 2016

src/Ethernet_HTTPClient/Ethernet_WebSocketClient.h

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,17 @@
1111
1212
Licensed under MIT license
1313
14-
Version: 1.4.2
14+
Version: 1.4.3
1515
1616
Version Modified By Date Comments
1717
------- ----------- ---------- -----------
1818
1.1.0 K Hoang 14/11/2020 Initial coding for STM32F/L/H/G/WB/MP1 to support Ethernet shields using SSL. Supporting BI LAN8742A,
1919
W5x00 using Ethernetx, ENC28J60 using EthernetENC and UIPEthernet libraries
20-
1.1.1 K Hoang 18/11/2020 Permit sites with "Chain could not be linked to a trust anchor" such as ThingStream
21-
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
22-
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
23-
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
24-
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
25-
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
20+
...
2621
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
2722
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
2823
1.4.2 K Hoang 11/01/2022 Fix libb64 fallthrough compile warning
24+
1.4.3 K Hoang 02/03/2022 Fix decoding error bug
2925
*************************************************************************************************************************************/
3026

3127
// (c) Copyright Arduino. 2016

src/Parsing_SSL_STM32-impl.h

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,17 @@
1111
1212
Licensed under MIT license
1313
14-
Version: 1.4.2
14+
Version: 1.4.3
1515
1616
Version Modified By Date Comments
1717
------- ----------- ---------- -----------
1818
1.1.0 K Hoang 14/11/2020 Initial coding for STM32F/L/H/G/WB/MP1 to support Ethernet shields using SSL. Supporting BI LAN8742A,
1919
W5x00 using Ethernetx, ENC28J60 using EthernetENC and UIPEthernet libraries
20-
1.1.1 K Hoang 18/11/2020 Permit sites with "Chain could not be linked to a trust anchor" such as ThingStream
21-
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
22-
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
23-
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
24-
1.3.0 K Hoang 11/04/2021 Add support to LAN8720 using STM32F4 or STM32F7
25-
1.3.1 K Hoang 04/10/2021 Change option for PIO `lib_compat_mode` from default `soft` to `strict`. Update Packages Patches
20+
...
2621
1.4.0 K Hoang 25/12/2021 Reduce usage of Arduino String with std::string. Fix bug
2722
1.4.1 K Hoang 27/12/2021 Fix wrong http status header bug and authenticate issue caused by libb64
2823
1.4.2 K Hoang 11/01/2022 Fix libb64 fallthrough compile warning
24+
1.4.3 K Hoang 02/03/2022 Fix decoding error bug
2925
*************************************************************************************************************************************/
3026

3127
#pragma once
@@ -152,7 +148,7 @@ bool EthernetWebServer::_parseRequest(EthernetClient& client)
152148

153149
if (hasSearch != -1)
154150
{
155-
searchStr = urlDecode(url.substring(hasSearch + 1));
151+
searchStr = url.substring(hasSearch + 1);
156152
url = url.substring(0, hasSearch);
157153
}
158154

0 commit comments

Comments
 (0)