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:
676203d
)
* luci/libs/httpprotocol: store QUERY_STRING in environment too, fixes query strings...
author
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 10 Oct 2008 20:28:57 +0000
(20:28 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 10 Oct 2008 20:28:57 +0000
(20:28 +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 ab696d58c85f67e5ddcf911ac726e9eb93027688..6240953d0fdc676eea63976b4d425cbd927371e8 100644
(file)
--- a/
libs/http/luasrc/http/protocol.lua
+++ b/
libs/http/luasrc/http/protocol.lua
@@
-568,7
+568,9
@@
function parse_message_header( src )
REQUEST_URI = msg.request_uri;
SCRIPT_NAME = msg.request_uri:gsub("?.+$","");
SCRIPT_FILENAME = ""; -- XXX implement me
- SERVER_PROTOCOL = "HTTP/" .. string.format("%.1f", msg.http_version)
+ SERVER_PROTOCOL = "HTTP/" .. string.format("%.1f", msg.http_version);
+ QUERY_STRING = msg.request_uri:match("?")
+ and msg.request_uri:gsub("^.+?","") or ""
}
-- Populate HTTP_* environment variables