summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-04-04 23:32:23 +0200
committerJo-Philipp Wich <jo@mein.io>2018-04-04 23:32:23 +0200
commit8a8eb0d487da5a36bc3d123f36cb6c68e899185a (patch)
tree452dcf25ab125b52a856b8c078df631f158c092f /applications
parent053c343ef18e209174e7161f4acf39bb02d25ff8 (diff)
luci-app-commands: use FULL_REQUEST_URI
Switch from using the REQUEST_URI CGI variable directly to the canonicalized FULL_REQUEST_URI property. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-app-commands/luasrc/view/commands.htm2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-commands/luasrc/view/commands.htm b/applications/luci-app-commands/luasrc/view/commands.htm
index f094e186d4..3b361558ee 100644
--- a/applications/luci-app-commands/luasrc/view/commands.htm
+++ b/applications/luci-app-commands/luasrc/view/commands.htm
@@ -136,7 +136,7 @@
uci:foreach("luci", "command", function(s) commands[#commands+1] = s end)
%>
-<form method="get" action="<%=pcdata(luci.http.getenv("REQUEST_URI"))%>">
+<form method="get" action="<%=pcdata(FULL_REQUEST_URI)%>">
<div class="cbi-map">
<h2 name="content"><%:Custom Commands%></h2>