# HG changeset patch # User Kim Alvefur # Date 1485709963 -3600 # Node ID 54c42b0979847bdc1a7c182e52751b8dfd79675c # Parent 173fe999cc377703d617b2fe80caeeff5b321bbf mod_http_upload: Change join_path to match behaviour of util.paths in 0.10 diff -r 173fe999cc37 -r 54c42b097984 mod_http_upload/mod_http_upload.lua --- a/mod_http_upload/mod_http_upload.lua Sun Jan 29 18:10:06 2017 +0100 +++ b/mod_http_upload/mod_http_upload.lua Sun Jan 29 18:12:43 2017 +0100 @@ -18,8 +18,8 @@ local t_insert = table.insert; local s_upper = string.upper; -local function join_path(a, b) -return a .. package.config:sub(1,1) .. b; +local function join_path(...) + table.concat({ ... }, package.config:sub(1,1)); end -- config