Skip to content

Commit

Permalink
Merge pull request #73 from OpenSprinkler/bug/urlencode_for_httpstation
Browse files Browse the repository at this point in the history
fix missing urldecode for httpstation
  • Loading branch information
rayshobby authored Jul 23, 2018
2 parents f9ab487 + 52ef45a commit a15e5e1
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 a15e5e1

Please sign in to comment.