diff libpurple/protocols/jabber/chat.c @ 27546:e90fa379fcec

Validate IPv6 identifiers in the domain portion of a JID.
author Paul Aurich <paul@darkrain42.org>
date Sat, 11 Jul 2009 07:47:07 +0000
parents a8537bbcfb79
children fdf1f64de3a0
line wrap: on
line diff
--- a/libpurple/protocols/jabber/chat.c	Sat Jul 11 07:32:27 2009 +0000
+++ b/libpurple/protocols/jabber/chat.c	Sat Jul 11 07:47:07 2009 +0000
@@ -235,7 +235,7 @@
 		purple_serv_got_join_chat_failed(gc, data);
 		g_free(buf);
 		return;
-	} else if(!jabber_nameprep_validate(server)) {
+	} else if(!jabber_domain_validate(server)) {
 		char *buf = g_strdup_printf(_("%s is not a valid server name"), server);
 		purple_notify_error(gc, _("Invalid Server Name"),
 				_("Invalid Server Name"), buf);