From eae0e447989a1a37ce6cb8df9f1f353738aab4f6 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 15 Jun 2008 17:45:10 +0000 Subject: * Added support for CGI SGI --- libs/web/luasrc/dispatcher.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/web/luasrc/dispatcher.lua') diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index e3ebe5b0e4..f5894bffc8 100644 --- a/libs/web/luasrc/dispatcher.lua +++ b/libs/web/luasrc/dispatcher.lua @@ -84,7 +84,7 @@ end function httpdispatch(request) luci.http.context.request = request context.request = {} - local pathinfo = request.env.PATH_INFO or "" + local pathinfo = request:getenv("PATH_INFO") or "" for node in pathinfo:gmatch("[^/]+") do table.insert(context.request, node) -- cgit v1.2.3