Fixed HTTP stack to parse urlencoded data from Internet Explorer correctly

Internet Explorer appends a whitespace character after the last parameter which will now be stripped
This commit is contained in:
Steven Barth 2008-09-05 11:36:53 +00:00
parent cc4c0688b5
commit f62839fde9

View file

@ -500,7 +500,7 @@ function urldecode_message_body( src, msg )
if spos then
local pair = data:sub( spos, epos - 1 )
local key = pair:match("^(.-)=")
local val = pair:match("=(.*)$")
local val = pair:match("=([^%s]*)%s*$")
if key and #key > 0 then
__initval( msg.params, key )