d-a-v / Arduino

ESP8266 core for Arduino
GNU Lesser General Public License v2.1
4 stars 2 forks source link

fix pos substrings #1

Closed reloxx13 closed 6 years ago

reloxx13 commented 6 years ago

key_end_pos--; dont count down here, it will cut of every key by -1 ("save" will be "sav") (substring (end = up to, but not including, so no need to -1)

Parsing cpp L329 arg.value = urlDecode(data.substring(equal_index + 1, next_index - 1)); => -1 is too less for substring (substring (end = up to, but not including, so no need to -1)

d-a-v commented 6 years ago

Thanks! I had been only testing this code under linux, I guess my test setup was wrong, because this code was indeed not working in esp. Will push it soon to upstream with a proper "plain={body}" fix for alexa