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 <jo@mein.io>
This commit is contained in:
parent
b194b8882e
commit
48a5864f06
1 changed files with 1 additions and 1 deletions
|
@ -7,5 +7,5 @@
|
|||
<%+header%>
|
||||
<h2 name="content">404 <%:Not Found%></h2>
|
||||
<p><%:Sorry, the object you requested was not found.%></p>
|
||||
<tt><%:Unable to dispatch%>: <%=luci.http.request.env.PATH_INFO%></tt>
|
||||
<tt><%:Unable to dispatch%>: <%=url(unpack(luci.dispatcher.context.request))%></tt>
|
||||
<%+footer%>
|
||||
|
|
Loading…
Reference in a new issue