pidgin: 7e237caa: '=' and ',' are valid nodeprep character...
darkrain42 at pidgin.im
darkrain42 at pidgin.im
Tue Nov 17 18:11:02 EST 2009
-----------------------------------------------------------------
Revision: 7e237caaeb4e62698b2583551ca4530fd19c8cfb
Ancestor: d2984fa9ffdaa63b01cc1e0d94aec5622cd080c1
Author: darkrain42 at pidgin.im
Date: 2009-11-17T22:03:50
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/7e237caaeb4e62698b2583551ca4530fd19c8cfb
Modified files:
libpurple/tests/test_jabber_jutil.c
ChangeLog:
'=' and ',' are valid nodeprep characters
-------------- next part --------------
============================================================
--- libpurple/tests/test_jabber_jutil.c 9343d0108a3130802aa7487786aef3643cf29ac0
+++ libpurple/tests/test_jabber_jutil.c b45e39906177adf954a017c47828b59d01298876
@@ -40,6 +40,8 @@ START_TEST(test_nodeprep_validate)
fail_unless(jabber_nodeprep_validate("foo"));
fail_unless(jabber_nodeprep_validate("%d"));
fail_unless(jabber_nodeprep_validate("y\\z"));
+ fail_unless(jabber_nodeprep_validate("a="));
+ fail_unless(jabber_nodeprep_validate("a,"));
longnode = g_strnfill(1023, 'a');
fail_unless(jabber_nodeprep_validate(longnode));
@@ -118,6 +120,8 @@ START_TEST(test_jabber_id_new)
assert_valid_jid("paul@[::1]"); /* IPv6 */
assert_valid_jid("paul@[2001:470:1f05:d58::2]");
assert_valid_jid("paul@[2001:470:1f05:d58::2]/foo");
+ assert_valid_jid("pa=ul at 10.0.42.230");
+ assert_valid_jid("pa,ul at 10.0.42.230");
assert_invalid_jid("@gmail.com");
assert_invalid_jid("@@gmail.com");
More information about the Commits
mailing list