Sat, 11 Dec 2021 13:30:34 +0100 util.format: Ensure sanitation of strings passed to wrong format
Kim Alvefur <zash@zash.se> [Sat, 11 Dec 2021 13:30:34 +0100] rev 12036
util.format: Ensure sanitation of strings passed to wrong format Ie. log("debug", "%d", "\1\2\3") should not result in garbage. Also optimizing for the common case of ASCII string passed to %s and early returns everywhere. Returning nil from a gsub callback keeps the original substring.
Fri, 10 Dec 2021 22:48:45 +0100 util.format: Escape invalid UTF-8 by passing trough serialization
Kim Alvefur <zash@zash.se> [Fri, 10 Dec 2021 22:48:45 +0100] rev 12035
util.format: Escape invalid UTF-8 by passing trough serialization Should prevent invalid UTF-8 from making it into the logs, which can cause trouble with terminals or log viewers or other tools, such as when grep determines that log files are binary.
Fri, 10 Dec 2021 22:25:34 +0100 mod_mam: Avoid storing bounces for messages from the bare account (thanks Ge0rG)
Kim Alvefur <zash@zash.se> [Fri, 10 Dec 2021 22:25:34 +0100] rev 12034
mod_mam: Avoid storing bounces for messages from the bare account (thanks Ge0rG) This should rule out error replies to PEP notifications, which come from the account bare JID, and would be reflected back to it if they can't be delivered for some reason, e.g. s2s problems.
Wed, 08 Dec 2021 21:55:25 +0100 MUC: Remove <{muc}x> tags in some errors
Kim Alvefur <zash@zash.se> [Wed, 08 Dec 2021 21:55:25 +0100] rev 12033
MUC: Remove <{muc}x> tags in some errors Including the payload of the stanza that caused the error is optional and we're generally not doing it anywhere else.
Wed, 08 Dec 2021 21:06:16 +0100 MUC: Fix error origin JID in wrong argument position
Kim Alvefur <zash@zash.se> [Wed, 08 Dec 2021 21:06:16 +0100] rev 12032
MUC: Fix error origin JID in wrong argument position Mistake introduced in cbe524ed1a6a. Removing because this is a query to the bare JID where the error origin matches the resulting stanza 'from'.
Wed, 08 Dec 2021 21:02:14 +0100 MUC: Remove remaining deprecated numeric error codes
Kim Alvefur <zash@zash.se> [Wed, 08 Dec 2021 21:02:14 +0100] rev 12031
MUC: Remove remaining deprecated numeric error codes The numeric error codes seems to have been removed from the examples in XEP-0045 version 1.24, and were deprecated even by RFC 3920 in 2004, only allowed for backwards compatibility.
Wed, 08 Dec 2021 16:40:51 +0100 MUC: Return a friendly textual error when trying to speak without voice
Kim Alvefur <zash@zash.se> [Wed, 08 Dec 2021 16:40:51 +0100] rev 12030
MUC: Return a friendly textual error when trying to speak without voice I spend several minutes confused over where the bug was until I remembered I had set myself as visitor in the previous debug session. This would have helped.
Tue, 07 Dec 2021 21:43:36 +0100 net.resolvers: Report when hostname fails IDNA
Kim Alvefur <zash@zash.se> [Tue, 07 Dec 2021 21:43:36 +0100] rev 12029
net.resolvers: Report when hostname fails IDNA Not a particularly user-friendly error message, but better than "unable to resolve service" and having no clue where it came from.
Tue, 07 Dec 2021 16:23:23 +0000 util.sasl.scram: Store username property rather than cached local (#399)
Matthew Wild <mwild1@gmail.com> [Tue, 07 Dec 2021 16:23:23 +0000] rev 12028
util.sasl.scram: Store username property rather than cached local (#399) This should allow modules to override the username in a profile handler by assigning to self.username.
Tue, 07 Dec 2021 13:21:20 +0100 mod_admin_shell: Add port as a c2s/s2s:show column definition
Kim Alvefur <zash@zash.se> [Tue, 07 Dec 2021 13:21:20 +0100] rev 12027
mod_admin_shell: Add port as a c2s/s2s:show column definition Allows inferring whether Direct TLS was used, or perhaps which SRV record was chosen. Not shown by default.
(0) -10000 -3000 -1000 -300 -100 -10 +10 +100 +300 +1000 tip