luci-base: dispatcher: fix null access on dispatching unknown urls
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 4d28c390ab
)
This commit is contained in:
parent
cfd0bdd206
commit
62d45da4a5
1 changed files with 3 additions and 1 deletions
|
@ -920,7 +920,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 {}
|
||||||
|
|
Loading…
Reference in a new issue