projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc4c068
)
Fixed HTTP stack to parse urlencoded data from Internet Explorer correctly
author
Steven Barth
<steven@midlink.org>
Fri, 5 Sep 2008 11:36:53 +0000
(11:36 +0000)
committer
Steven Barth
<steven@midlink.org>
Fri, 5 Sep 2008 11:36:53 +0000
(11:36 +0000)
Internet Explorer appends a whitespace character after the last parameter which will now be stripped
libs/http/luasrc/http/protocol.lua
patch
|
blob
|
history
diff --git
a/libs/http/luasrc/http/protocol.lua
b/libs/http/luasrc/http/protocol.lua
index fd0a046f6ba5e4f1bb028688695ee1c9b24bbf34..93c9e79991cac02fae8ed56202868c76b3caf42c 100644
(file)
--- 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 )