From: Steven Barth Date: Mon, 20 Oct 2008 22:35:22 +0000 (+0000) Subject: Content Type for www-urlencoded should match additions like "; charset=utf8" as well X-Git-Tag: 0.9.0~1077 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f35cea8c53ef5d7be0c5b1e4a915f5583eab3df1;p=oweals%2Fluci.git Content Type for www-urlencoded should match additions like "; charset=utf8" as well --- diff --git a/libs/http/luasrc/http/protocol.lua b/libs/http/luasrc/http/protocol.lua index 6240953d0..b9a50effe 100644 --- 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 )