From 8509176a06b965ba9a0f432f5ebe87a881fdd717 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Wed, 6 Jun 2018 17:37:25 +0100 Subject: [PATCH] lib/lua/nb.lua --- lib/lua/nb.lua | 3 +++ www/dbq/dbq.php | 1 + 2 files changed, 4 insertions(+) diff --git a/lib/lua/nb.lua b/lib/lua/nb.lua index 27be29b9..ade4b932 100644 --- a/lib/lua/nb.lua +++ b/lib/lua/nb.lua @@ -138,6 +138,9 @@ function nb:ngx_location_tmpl(fheader,ffooter) -- if not vars.title then vars.title = string.match(ngx.var.http_host,'^([^%.]+)') end content = self:html_fix(content) + + -- See: /usr/local/share/lua/5.1/resty/template.lua + -- Same as: template.print(template.compile(content,vars)(context)) template.render(content,vars) ngx.exit(0) diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index 10b34b34..f679f847 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -123,6 +123,7 @@ class DbQ extends nb { 'format_html_ua_exp', 'format_cli', 'expires', + 'base', ] as $k) { $env = 'DBQ_'.strtoupper($k); -- 2.47.3