From: Steven Barth Date: Wed, 17 Dec 2008 19:52:50 +0000 (+0000) Subject: Fixed REQUEST_URI X-Git-Tag: 0.9.0~890 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=57cfc2ee266076472c578e34f4ff664361672487 Fixed REQUEST_URI --- diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index 33b95840a..f69713a91 100644 --- a/libs/web/luasrc/dispatcher.lua +++ b/libs/web/luasrc/dispatcher.lua @@ -203,7 +203,7 @@ function dispatch(request) if key == "controller" then return build_url() elseif key == "REQUEST_URI" then - return build_url(ctx.requested) + return build_url(unpack(ctx.requested.path)) else return rawget(table, key) or _G[key] end