Mercurial > prosody-hg
changeset 13886:cbb8dc92daa9 13.0
mod_s2s: Fix log to use formatting instead of concatenation (fixes #1461)
Somehow this escaped semgrep, probably because the (x or y)() syntax.
Thanks Ge0rG
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 24 May 2025 15:53:46 +0200 |
| parents | 3609d8fcad00 |
| children | 318a851cb415 0dd82a8f1913 |
| files | plugins/mod_s2s.lua |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_s2s.lua Mon May 19 18:12:57 2025 +0200 +++ b/plugins/mod_s2s.lua Sat May 24 15:53:46 2025 +0200 @@ -192,7 +192,7 @@ -- We have a connection to this host already if host.type == "s2sout_unauthed" and (stanza.name ~= "db:verify" or not host.dialback_key) then - (host.log or log)("debug", "trying to send over unauthed s2sout to "..to_host); + (host.log or log)("debug", "trying to send over unauthed s2sout to %s", to_host); -- Queue stanza until we are able to send it if not host.sendq then
