pidgin: 17281112: Add another (IMHO unintuitive) JID test....
darkrain42 at pidgin.im
darkrain42 at pidgin.im
Tue Oct 20 17:26:59 EDT 2009
-----------------------------------------------------------------
Revision: 1728111287df6ffdbc5d620de1b98ed80965354c
Ancestor: 0f322f0889f33c4f6785705eb2f79a676a4e56b2
Author: darkrain42 at pidgin.im
Date: 2009-10-20T19:38:35
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/1728111287df6ffdbc5d620de1b98ed80965354c
Modified files:
libpurple/tests/test_jabber_jutil.c
ChangeLog:
Add another (IMHO unintuitive) JID test. Refs #10532.
Thanks to MattJ, waqas, and Florob for their knowledge of Unicode/Stringprep.
-------------- next part --------------
============================================================
--- libpurple/tests/test_jabber_jutil.c 2bfe676fff34d7405d07196f1257da01ba64c04e
+++ libpurple/tests/test_jabber_jutil.c 9343d0108a3130802aa7487786aef3643cf29ac0
@@ -134,6 +134,14 @@ START_TEST(test_jabber_id_new)
assert_invalid_jid("paul at 2[::1]124/as");
assert_invalid_jid("paul@??.????/\x01");
+ /*
+ * RFC 3454 Section 6 reads, in part,
+ * "If a string contains any RandALCat character, the
+ * string MUST NOT contain any LCat character."
+ * The character is U+066D (ARABIC FIVE POINTED STAR).
+ */
+ assert_invalid_jid("foo at example.com/?simplexe?");
+
/* Ensure that jabber_id_new is properly lowercasing node and domains */
assert_jid_parts("paul", "darkrain42.org", "PaUL at darkrain42.org");
assert_jid_parts("paul", "darkrain42.org", "paul at DaRkRaIn42.org");
More information about the Commits
mailing list