# HG changeset patch # User Kim Alvefur # Date 1471911214 -7200 # Node ID 827f01cbf6bafd4f7c6f35bdc8d0aa5827dec34c # Parent e1a8c23249376987d915c6454bf526d5d00be424 mod_http_upload: Handle case of non-existant path diff -r e1a8c2324937 -r 827f01cbf6ba mod_http_upload/mod_http_upload.lua --- a/mod_http_upload/mod_http_upload.lua Tue Aug 23 02:09:32 2016 +0200 +++ b/mod_http_upload/mod_http_upload.lua Tue Aug 23 02:13:34 2016 +0200 @@ -88,7 +88,7 @@ pending_slots[random.."/"..filename] = origin.full_jid; local base_url = module:http_url(); local slot_url = url.parse(base_url); - slot_url.path = url.parse_path(slot_url.path); + slot_url.path = url.parse_path(slot_url.path or "/"); t_insert(slot_url.path, random); t_insert(slot_url.path, filename); slot_url.path.is_directory = false;