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 f6b0f5706a698a36806961324dc6a29b5bd02de0..b3ec9b761705e2fe1c8fca5237362b3d152e1497 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 -%>