luci-base: use FULL_REQUEST_URI on login form templates
authorJo-Philipp Wich <jo@mein.io>
Wed, 4 Apr 2018 21:30:49 +0000 (23:30 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 4 Apr 2018 21:30:49 +0000 (23:30 +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>
modules/luci-base/luasrc/view/sysauth.htm

index f6b0f57..b3ec9b7 100644 (file)
@@ -6,7 +6,7 @@
 
 <%+header%>
 
-<form method="post" action="<%=pcdata(luci.http.getenv("REQUEST_URI"))%>">
+<form method="post" action="<%=pcdata(FULL_REQUEST_URI)%>">
        <%- if fuser then %>
        <div class="errorbox"><%:Invalid username and/or password! Please try again.%></div>
        <% end -%>