From 57cfc2ee266076472c578e34f4ff664361672487 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 17 Dec 2008 19:52:50 +0000 Subject: [PATCH] Fixed REQUEST_URI --- libs/web/luasrc/dispatcher.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1