From 3483944568e0e01460468ca33c886df49962d2ce Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 11 Oct 2022 15:41:05 +0100 Subject: util.jid: Add test for invalid domain but valid UTF-8 (thanks jonas) --- spec/util_jid_spec.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/util_jid_spec.lua b/spec/util_jid_spec.lua index 6bfefcec..4f5fe356 100644 --- a/spec/util_jid_spec.lua +++ b/spec/util_jid_spec.lua @@ -83,6 +83,7 @@ describe("util.jid", function() end); it("should fail for JIDs that fail stringprep", function () test("node@invalid-\128-server", nil, nil, nil); + test("node@invalid-\194\128-server", nil, nil, nil); test("@server", nil, nil, nil); test("node@server/invalid-\000-resource", nil, nil, nil); end); -- cgit v1.2.3