# HG changeset patch # User Kim Alvefur # Date 1700654210 -3600 # Node ID 80702e33ba71afd16a485a35691503004edcd47e # Parent 372b6c4bf40913cf1344025b38238e34cdbdc58e mod_storage_s3: Fix storing archives for host itself (e.g. mod_audit) Fixes error due to path constructor trying to do string.gsub(nil) with missing username or with fields. diff -r 372b6c4bf409 -r 80702e33ba71 mod_storage_s3/mod_storage_s3.lua --- a/mod_storage_s3/mod_storage_s3.lua Wed Nov 22 11:54:22 2023 +0000 +++ b/mod_storage_s3/mod_storage_s3.lua Wed Nov 22 12:56:50 2023 +0100 @@ -206,8 +206,8 @@ bucket; jid.escape(module.host); jid.escape(self.store); - jid.escape(username); - jid.escape(jid.prep(with)); + jid.escape(username or "@"); + jid.escape(with and jid.prep(with) or "@"); date or dt.date(when); key; })