comparison libpurple/protocols/jabber/chat.c @ 27470: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
comparison
equal deleted inserted replaced
27469:8c41a23e6b44 27470:e90fa379fcec
233 purple_notify_error(gc, _("Invalid Room Name"), _("Invalid Room Name"), 233 purple_notify_error(gc, _("Invalid Room Name"), _("Invalid Room Name"),
234 buf); 234 buf);
235 purple_serv_got_join_chat_failed(gc, data); 235 purple_serv_got_join_chat_failed(gc, data);
236 g_free(buf); 236 g_free(buf);
237 return; 237 return;
238 } else if(!jabber_nameprep_validate(server)) { 238 } else if(!jabber_domain_validate(server)) {
239 char *buf = g_strdup_printf(_("%s is not a valid server name"), server); 239 char *buf = g_strdup_printf(_("%s is not a valid server name"), server);
240 purple_notify_error(gc, _("Invalid Server Name"), 240 purple_notify_error(gc, _("Invalid Server Name"),
241 _("Invalid Server Name"), buf); 241 _("Invalid Server Name"), buf);
242 purple_serv_got_join_chat_failed(gc, data); 242 purple_serv_got_join_chat_failed(gc, data);
243 g_free(buf); 243 g_free(buf);