]> Untitled Git - public.git/commitdiff
Hotfix for nonce URL 1.2.2
authorClifton Palmer <clifton.james.palmer@protonmail.com>
Mon, 28 Aug 2023 10:15:20 +0000 (05:15 -0500)
committerClifton Palmer <clifton.james.palmer@protonmail.com>
Mon, 28 Aug 2023 10:15:20 +0000 (05:15 -0500)
docker-compose.yml
lua/publish.lua

index 96979c937fe42b33c1ab0140b79c6fce937a8081..65080cd07923c556689692df16b21b691b296e75 100644 (file)
@@ -2,7 +2,7 @@ version: '3'
 services:
     web:
         build: .
 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
         volumes:
         - ${SHARE_ROOT}:/storage
         - public_data:/usr/local/apache2/htdocs
index a132c709bb52e822361f6ce6bdd6fbef9840a254..b98e8f4a344daea49f14e5f8f8df9d7672e12e16 100644 (file)
@@ -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 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( ([[<a href="%s">%s</a>]]):format(uri, uri) )
     else
         local template = get_form(r.context_document_root)
         r:puts( ([[<a href="%s">%s</a>]]):format(uri, uri) )
     else
         local template = get_form(r.context_document_root)