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

index fe205d053b73cb315f7662be8934507882413a85..eac1ecdcf547bc243f2a7c7f6d0ba5f5219c3983 100644 (file)
@@ -53,7 +53,7 @@ local has_traceroute6 = fs.access("/usr/bin/traceroute6")
        }
 //]]></script>
 
-<form method="post" action="<%=pcdata(luci.http.getenv("REQUEST_URI"))%>">
+<form method="post" action="<%=pcdata(FULL_REQUEST_URI)%>">
        <div class="cbi-map">
                <h2 name="content"><%:Diagnostics%></h2>