aboutsummaryrefslogtreecommitdiffstats
path: root/core/stanza_router.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-10-30 17:33:52 +0100
committerKim Alvefur <zash@zash.se>2019-10-30 17:33:52 +0100
commit95f7ce5e3d4c81517210149170663bf3dadec024 (patch)
tree34d297062609e15c64d660e4d5e81ca5a526acb6 /core/stanza_router.lua
parent39a09669859afad63161cd5f0e42762404733b80 (diff)
downloadprosody-95f7ce5e3d4c81517210149170663bf3dadec024.tar.gz
prosody-95f7ce5e3d4c81517210149170663bf3dadec024.zip
Backed out changeset 64ddcbc9a328 as it would prevent communicating with valid remote JIDs that aren't valid under STRINGPREP / Unicode 3.2
Diffstat (limited to 'core/stanza_router.lua')
-rw-r--r--core/stanza_router.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index 9d3ab113..a74f3b6f 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -83,7 +83,7 @@ function core_process_stanza(origin, stanza)
if full_sessions[to] or bare_sessions[to] or hosts[to] then
node, host = jid_split(to); -- TODO only the host is needed, optimize
else
- node, host, resource = jid_prepped_split(to, origin.type == "c2s");
+ node, host, resource = jid_prepped_split(to);
if not host then
log("warn", "Received stanza with invalid destination JID: %s", to);
if stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then