projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c617c0
)
luci-base: use FULL_REQUEST_URI on login form templates
author
Jo-Philipp Wich
<jo@mein.io>
Wed, 4 Apr 2018 21:30:49 +0000
(23:30 +0200)
committer
Jo-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
patch
|
blob
|
history
diff --git
a/modules/luci-base/luasrc/view/sysauth.htm
b/modules/luci-base/luasrc/view/sysauth.htm
index f6b0f5706a698a36806961324dc6a29b5bd02de0..b3ec9b761705e2fe1c8fca5237362b3d152e1497 100644
(file)
--- a/
modules/luci-base/luasrc/view/sysauth.htm
+++ b/
modules/luci-base/luasrc/view/sysauth.htm
@@
-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 -%>