changeset 7232 | dcc8ed11173c |
parent 7231 | b5b7ae2901e6 |
child 7233 | 20246b139607 |
--- a/plugins/mod_http_files.lua Thu Mar 03 15:28:07 2016 +0100 +++ b/plugins/mod_http_files.lua Thu Mar 03 15:30:00 2016 +0100 @@ -95,7 +95,7 @@ end path = sanitized_path; local orig_path = sanitize_path(request.path); - local full_path = base_path .. (path and "/"..path or ""):gsub("/", path_sep); + local full_path = base_path .. (path or ""):gsub("/", path_sep); local attr = stat(full_path:match("^.*[^\\/]")); -- Strip trailing path separator because Windows if not attr then return 404;