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:
parent
cc4c0688b5
commit
f62839fde9
1 changed files with 1 additions and 1 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue