From f5ea75c583fb89f2b096404f14af4dd4557fffac Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Wed, 16 May 2018 12:45:10 +0100 Subject: [PATCH] lib/lua/nb.lua --- lib/lua/nb.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/lua/nb.lua b/lib/lua/nb.lua index a046e23d..4c463b04 100644 --- a/lib/lua/nb.lua +++ b/lib/lua/nb.lua @@ -35,6 +35,7 @@ function nb:ngx_location_md(fheader,ffooter) local file = ngx.var.document_root .. ngx.var.uri; local content = self:readall(file) + if not content then return end local vars = {} -- Extract title from h1 -- 2.47.3