From 95f7ce5e3d4c81517210149170663bf3dadec024 Mon Sep 17 00:00:00 2001
From: Kim Alvefur <zash@zash.se>
Date: Wed, 30 Oct 2019 17:33:52 +0100
Subject: 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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
cgit v1.2.3