comparison 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
parents 173fe999cc37
children 024a4143baef
comparison
equal deleted inserted replaced
2474:173fe999cc37 2475:54c42b097984
16 local datamanager = require "util.datamanager"; 16 local datamanager = require "util.datamanager";
17 local t_concat = table.concat; 17 local t_concat = table.concat;
18 local t_insert = table.insert; 18 local t_insert = table.insert;
19 local s_upper = string.upper; 19 local s_upper = string.upper;
20 20
21 local function join_path(a, b) 21 local function join_path(...)
22 return a .. package.config:sub(1,1) .. b; 22 table.concat({ ... }, package.config:sub(1,1));
23 end 23 end
24 24
25 -- config 25 -- config
26 local file_size_limit = module:get_option_number(module.name .. "_file_size_limit", 1024 * 1024); -- 1 MB 26 local file_size_limit = module:get_option_number(module.name .. "_file_size_limit", 1024 * 1024); -- 1 MB
27 27