luci-base: dispatcher: fix null access on dispatching unknown urls

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2021-10-11 19:01:39 +02:00
parent 34b682afac
commit 4d28c390ab

View file

@ -918,7 +918,9 @@ function dispatch(request)
return return
end end
page.readonly = not perm if page then
page.readonly = not perm
end
end end
local action = (page and type(page.action) == "table") and page.action or {} local action = (page and type(page.action) == "table") and page.action or {}