From 2a271915a66c003e4dba27ff7caa4fc19fb6dd29 Mon Sep 17 00:00:00 2001 From: Clifton Palmer Date: Mon, 28 Aug 2023 05:15:20 -0500 Subject: [PATCH 1/1] Hotfix for nonce URL --- docker-compose.yml | 2 +- lua/publish.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 96979c9..65080cd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: '3' services: web: build: . - image: cjpalmer/public:1.2.1 + image: cjpalmer/public:1.2.2 volumes: - ${SHARE_ROOT}:/storage - public_data:/usr/local/apache2/htdocs diff --git a/lua/publish.lua b/lua/publish.lua index a132c70..b98e8f4 100644 --- a/lua/publish.lua +++ b/lua/publish.lua @@ -31,7 +31,7 @@ function handle(r) local fqdn = os.getenv('PUBLIC_FQDN_OVERRIDE') fqdn = fqdn or (r.is_https and "https" or "http") .. "://" .. r.server_name .. ":" ..r.port - local uri = ("%s/%s"):format(fqdn, nonce) + local uri = ("%s/%s/"):format(fqdn, nonce) r:puts( ([[%s]]):format(uri, uri) ) else local template = get_form(r.context_document_root) -- 2.47.2