Skip to content

Commit

Permalink
fix missing urldecode for httpstation
Browse files Browse the repository at this point in the history
  • Loading branch information
rayshobby committed Jul 22, 2018
1 parent 531a735 commit 52ef45a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,9 @@ void server_change_stations() {
}
if (!found || activeState > 1) handle_return(HTML_DATA_OUTOFBOUND);
} else if (tmp_buffer[0] == STN_TYPE_HTTP) {
//urlDecode(tmp_buffer + 1); // we don't decode url anymore since this would have to be re-encoded later
#if !defined(ESP8266) // ESP8266 performs automatic decoding so no need to do it again
urlDecode(tmp_buffer + 1);
#endif
if (strlen(tmp_buffer+1) > sizeof(HTTPStationData)) {
handle_return(HTML_DATA_OUTOFBOUND);
}
Expand Down

0 comments on commit 52ef45a

Please sign in to comment.