diff options
author | Steven Barth <steven@midlink.org> | 2008-05-06 22:44:14 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-05-06 22:44:14 +0000 |
commit | fc6f624c88454f9d30cc041d042394568e6ffc56 (patch) | |
tree | c4a62c28b58c5eab5f6107daa847c687344a4283 | |
parent | 89d84aecedbe9609b5d1f6124669fe101e4ad6f1 (diff) |
-rw-r--r-- | core/contrib/webuci_bootstrap.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/contrib/webuci_bootstrap.lua b/core/contrib/webuci_bootstrap.lua index 7339e986c..c8aa18cca 100644 --- a/core/contrib/webuci_bootstrap.lua +++ b/core/contrib/webuci_bootstrap.lua @@ -14,7 +14,7 @@ function init_req(context) PATH_INFO = "/" .. context.uri REMOTE_PORT = context.remote_port SERVER_ADDR = context.server_addr - SCRIPT_NAME = REQUEST_URI:sub(1, #REQUEST_URI - #context.uri) + SCRIPT_NAME = REQUEST_URI:sub(1, #REQUEST_URI - #PATH_INFO) end function handle_req(context) |