[Telepathy-commits] [telepathy-gabble/master] Skip roster <item>s that contain '/' (fd.o #12791)
Simon McVittie
simon.mcvittie at collabora.co.uk
Tue Aug 19 10:51:51 PDT 2008
20080428165323-53eee-e9ccb4093493d76266121f5bd4494c22df973752.gz
---
src/roster.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/roster.c b/src/roster.c
index 2096e27..5f35f7c 100644
--- a/src/roster.c
+++ b/src/roster.c
@@ -1166,6 +1166,14 @@ gabble_roster_iq_cb (LmMessageHandler *handler,
continue;
}
+ if (strchr (jid, '/') != NULL)
+ {
+ /* Avoid fd.o #12791 */
+ NODE_DEBUG (item_node,
+ "item node has resource in jid, skipping");
+ continue;
+ }
+
handle = tp_handle_ensure (contact_repo, jid, NULL, NULL);
if (handle == 0)
{
--
1.5.6.3
More information about the Telepathy-commits
mailing list