projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
053c343
)
luci-app-commands: use FULL_REQUEST_URI
author
Jo-Philipp Wich
<jo@mein.io>
Wed, 4 Apr 2018 21:32:23 +0000
(23:32 +0200)
committer
Jo-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
patch
|
blob
|
history
diff --git
a/applications/luci-app-commands/luasrc/view/commands.htm
b/applications/luci-app-commands/luasrc/view/commands.htm
index f094e186d43346e61719bcdeba021f6b5ed0aa53..3b361558eee5834d6a68acc754a334bb2284a90e 100644
(file)
--- 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>