diff options
author | Steven Barth <steven@midlink.org> | 2008-12-22 21:54:20 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-12-22 21:54:20 +0000 |
commit | 014d971eabdb4c20eb09356098ca1a87f783abe7 (patch) | |
tree | a3fec6115e1bb5b85ef839b8e0bf6c2cf5ae53f5 /modules | |
parent | 489be66e4d1634197a6975f589239f93edac54e6 (diff) |
Fix urltoken passing on several pages
Diffstat (limited to 'modules')
-rw-r--r-- | modules/admin-core/luasrc/view/sysauth.htm | 2 | ||||
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_network/wireless.lua | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/admin-core/luasrc/view/sysauth.htm b/modules/admin-core/luasrc/view/sysauth.htm index 42f13fa1f..49652400f 100644 --- a/modules/admin-core/luasrc/view/sysauth.htm +++ b/modules/admin-core/luasrc/view/sysauth.htm @@ -15,7 +15,7 @@ $Id$ <%+header%> <% luci.i18n.loadc("sysauth") %> -<form method="post" action="<%=luci.http.getenv("REQUEST_URI")%>"> +<form method="post" action="<%=REQUEST_URI%>"> <div class="cbi-map"> <h2><a id="content" name="content"><%:sysauth_head%></a></h2> <div class="cbi-map-descr"> diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/wireless.lua b/modules/admin-full/luasrc/model/cbi/admin_network/wireless.lua index 4f19f4e2c..ef46cb4a3 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/wireless.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/wireless.lua @@ -32,7 +32,7 @@ s = m:section(Table, ifaces, translate("networks")) function s.extedit(self, section) local device = self.map:get(section, "device") or "" - return luci.http.getenv("REQUEST_URI") .. "/" .. device + return luci.dispatcher.build_url(unpack(luci.dispatcher.context.requested.path)) .. "/" .. device end link = s:option(DummyValue, "_link", translate("link")) @@ -124,11 +124,11 @@ function create.write(self, section, value) uci:load("wireless") uci:section("wireless", "wifi-iface", nil, {device=value}) uci:save("wireless") - luci.http.redirect(luci.http.getenv("REQUEST_URI") .. "/" .. value) + luci.http.redirect(luci.dispatcher.build_url(unpack(luci.dispatcher.context.requested.path)) .. "/" .. value) end function create.cbid(self, section) return "priv.cbid.create" end -return m
\ No newline at end of file +return m |