Backed out changeset 64ddcbc9a328 as it would prevent communicating with valid remote JIDs that aren't valid under STRINGPREP / Unicode 3.2
authorKim Alvefur <zash@zash.se>
Wed, 30 Oct 2019 17:33:52 +0100
changeset 10366 c05444119e9e
parent 10365 6e051bfca12d
child 10367 1010a1ff8d21
Backed out changeset 64ddcbc9a328 as it would prevent communicating with valid remote JIDs that aren't valid under STRINGPREP / Unicode 3.2
core/stanza_router.lua
--- a/core/stanza_router.lua	Mon Sep 23 19:13:14 2019 +0200
+++ b/core/stanza_router.lua	Wed Oct 30 17:33:52 2019 +0100
@@ -83,7 +83,7 @@
 		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