mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 19:01:56 +00:00
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:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user