summaryrefslogtreecommitdiffhomepage
path: root/core/contrib
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-05-07 21:08:16 +0000
committerSteven Barth <steven@midlink.org>2008-05-07 21:08:16 +0000
commit0120aec28526235d5efce2bbb12bc0e89cae6352 (patch)
tree98d89a0e27fbcd39d9cc80e53627128be7211c03 /core/contrib
parentf8ac8062a51fdbf9c09e9e53738d4aa83c852695 (diff)
* Fixed webuci bootstrapper
* Added ffluci.http.header function
Diffstat (limited to 'core/contrib')
-rw-r--r--core/contrib/webuci_bootstrap.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/contrib/webuci_bootstrap.lua b/core/contrib/webuci_bootstrap.lua
index 9a2fafb0ef..50ac8184b7 100644
--- a/core/contrib/webuci_bootstrap.lua
+++ b/core/contrib/webuci_bootstrap.lua
@@ -15,7 +15,7 @@ function init_req(context)
env.PATH_INFO = "/" .. context.uri
env.REMOTE_PORT = context.remote_port
env.SERVER_ADDR = context.server_addr
- env.SCRIPT_NAME = REQUEST_URI:sub(1, #REQUEST_URI - #PATH_INFO)
+ env.SCRIPT_NAME = env.REQUEST_URI:sub(1, #env.REQUEST_URI - #env.PATH_INFO)
end
function handle_req(context)