projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de4b0ab
)
Content Type for www-urlencoded should match additions like "; charset=utf8" as well
author
Steven Barth
<steven@midlink.org>
Mon, 20 Oct 2008 22:35:22 +0000
(22:35 +0000)
committer
Steven Barth
<steven@midlink.org>
Mon, 20 Oct 2008 22:35:22 +0000
(22:35 +0000)
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 6240953d0fdc676eea63976b4d425cbd927371e8..b9a50effe399f3e469b906066fdaf37c2f730c2b 100644
(file)
--- a/
libs/http/luasrc/http/protocol.lua
+++ b/
libs/http/luasrc/http/protocol.lua
@@
-619,7
+619,7
@@
function parse_message_body( src, msg, filecb )
-- Is it application/x-www-form-urlencoded ?
elseif msg.env.REQUEST_METHOD == "POST" and msg.env.CONTENT_TYPE and
- msg.env.CONTENT_TYPE
== "application/x-www-form-urlencoded"
+ msg.env.CONTENT_TYPE
:match("^application/x%-www%-form%-urlencoded")
then
return urldecode_message_body( src, msg, filecb )