Diff

mod_http_upload/mod_http_upload.lua @ 2475:54c42b097984

mod_http_upload: Change join_path to match behaviour of util.paths in 0.10
author Kim Alvefur <zash@zash.se>
date Sun, 29 Jan 2017 18:12:43 +0100
parent 2474:173fe999cc37
child 2476:024a4143baef
line wrap: on
line diff
--- 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