diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-04-28 16:53:23 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-04-28 16:53:23 +0000 |
commit | b4bbd99bdfc655def2bb5a68e3aa1361ceec38f2 (patch) | |
tree | ef9e5838ba65c1621029f8f14fb67d8c310e7f65 /src/roster.c | |
parent | 644db8066468d9e14703d68359b3bee9978d921a (diff) |
Skip roster <item>s that contain '/' (fd.o #12791)
Diffstat (limited to 'src/roster.c')
-rw-r--r-- | src/roster.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/roster.c b/src/roster.c index 2096e27a6..5f35f7c2b 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) { |