summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0e07fad)
* Fixed bug where publish.lua failed when no pattern provided
external: true
services:
web:
external: true
services:
web:
- image: cjpalmer/public:1.3.0
+ image: cjpalmer/public:1.3.1
volumes:
- ${LOCAL_ROOT_DIR}:/storage
- ${LOCAL_LINK_DIR}:/usr/local/apache2/htdocs
volumes:
- ${LOCAL_ROOT_DIR}:/storage
- ${LOCAL_LINK_DIR}:/usr/local/apache2/htdocs
- image: cjpalmer/public:1.3.0
+ image: cjpalmer/public:1.3.1
volumes:
- ${LOCAL_ROOT_DIR}:/storage
- public_data:/usr/local/apache2/htdocs
volumes:
- ${LOCAL_ROOT_DIR}:/storage
- public_data:/usr/local/apache2/htdocs
r.content_type = "text/html"
local args = r:parseargs()
r.content_type = "text/html"
local args = r:parseargs()
- local pattern = string.gsub(args.pattern, '+', ' ')
+ local pattern = args.pattern
+ -- filename might have spaces that apache replaces with '+'
+ pattern = string.gsub(pattern, '+', ' ')
+
local nonce = publish(r.context_document_root, pattern)
if nonce == "" then
r:puts( "No links created" )
local nonce = publish(r.context_document_root, pattern)
if nonce == "" then
r:puts( "No links created" )