luci-app-commands: use FULL_REQUEST_URI
authorJo-Philipp Wich <jo@mein.io>
Wed, 4 Apr 2018 21:32:23 +0000 (23:32 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 4 Apr 2018 21:32:23 +0000 (23:32 +0200)
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>
applications/luci-app-commands/luasrc/view/commands.htm

index f094e18..3b36155 100644 (file)
        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>