From 48a5864f06528e5e454f6e009ec863122f997415 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 10 Apr 2018 12:01:39 +0200 Subject: [PATCH] luci-base: error404: do not access request env directly Instead of attempting to access the request environment directly (which does not work anyway using the CGI SGI), use the already sanitized dispatcher.context.request property to print out the not found url. Signed-off-by: Jo-Philipp Wich --- modules/luci-base/luasrc/view/error404.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-base/luasrc/view/error404.htm b/modules/luci-base/luasrc/view/error404.htm index bc7422683..a762f6038 100644 --- a/modules/luci-base/luasrc/view/error404.htm +++ b/modules/luci-base/luasrc/view/error404.htm @@ -7,5 +7,5 @@ <%+header%>

404 <%:Not Found%>

<%:Sorry, the object you requested was not found.%>

-<%:Unable to dispatch%>: <%=luci.http.request.env.PATH_INFO%> +<%:Unable to dispatch%>: <%=url(unpack(luci.dispatcher.context.request))%> <%+footer%> -- 2.25.1