diff options
author | Steven Barth <steven@midlink.org> | 2008-09-05 11:36:53 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-09-05 11:36:53 +0000 |
commit | f62839fde97c1d59d22d4e3b8eee6bc85f2f2c0b (patch) | |
tree | abda96f85a1a4d6842b6b502e5432e99451dafa5 /libs | |
parent | cc4c0688b520394beb3a64fb763b6e52d1ffed94 (diff) |
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
Diffstat (limited to 'libs')
-rw-r--r-- | libs/http/luasrc/http/protocol.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/http/luasrc/http/protocol.lua b/libs/http/luasrc/http/protocol.lua index fd0a046f6b..93c9e79991 100644 --- a/libs/http/luasrc/http/protocol.lua +++ b/libs/http/luasrc/http/protocol.lua @@ -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 ) |