Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/userlist.c @ 28790:c3f79073c9be
The MSN servers are a bit more strict about what's allowed in emails than
the libpurple utility function. Usually, they just return an error about
the specific email and continue on with the rest, but for colons, slashes,
question marks, and equal signs, they just disconnect you.
So, when adding new contacts, or checking existing contacts in the address
book, ignore those with slashes, question marks, and equal signs (colon is
already tested).
References #9505.
Fixes #10549.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Fri, 23 Oct 2009 05:43:50 +0000 |
parents | 01f1929d0936 |
children | 819f464e581c |
comparison
equal
deleted
inserted
replaced
28789:e7bb163434c7 | 28790:c3f79073c9be |
---|---|
537 g_return_if_fail(userlist != NULL); | 537 g_return_if_fail(userlist != NULL); |
538 g_return_if_fail(userlist->session != NULL); | 538 g_return_if_fail(userlist->session != NULL); |
539 | 539 |
540 purple_debug_info("msn", "Add user: %s to group: %s\n", who, new_group_name); | 540 purple_debug_info("msn", "Add user: %s to group: %s\n", who, new_group_name); |
541 | 541 |
542 if (!purple_email_is_valid(who)) | 542 if (!msn_email_is_valid(who)) |
543 { | 543 { |
544 /* only notify the user about problems adding to the friends list | 544 /* only notify the user about problems adding to the friends list |
545 * maybe we should do something else for other lists, but it probably | 545 * maybe we should do something else for other lists, but it probably |
546 * won't cause too many problems if we just ignore it */ | 546 * won't cause too many problems if we just ignore it */ |
547 | 547 |