diff options
author | Matthew Wild <mwild1@gmail.com> | 2022-10-11 15:41:05 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2022-10-11 15:41:05 +0100 |
commit | 3483944568e0e01460468ca33c886df49962d2ce (patch) | |
tree | f52f5722ec38a336758c04f6378db4f650bf6ff5 /spec | |
parent | 120e01f16248ddc9148b96eef5e061be7ce850be (diff) | |
download | prosody-3483944568e0e01460468ca33c886df49962d2ce.tar.gz prosody-3483944568e0e01460468ca33c886df49962d2ce.zip |
util.jid: Add test for invalid domain but valid UTF-8 (thanks jonas)
Diffstat (limited to 'spec')
-rw-r--r-- | spec/util_jid_spec.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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("<invalid node>@server", nil, nil, nil); test("node@server/invalid-\000-resource", nil, nil, nil); end); |