luci-base: error404: do not access request env directly
authorJo-Philipp Wich <jo@mein.io>
Tue, 10 Apr 2018 10:01:39 +0000 (12:01 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 10 Apr 2018 10:01:43 +0000 (12:01 +0200)
commit48a5864f06528e5e454f6e009ec863122f997415
treedc4a1351b1a4bc12b1f0815e403bad9c3a695718
parentb194b8882e4d335a265f44c478ea8e3d7b2a99fc
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>
modules/luci-base/luasrc/view/error404.htm