Changeset d6e2aa8 for protocols/jabber


Ignore:
Timestamp:
2015-11-09T12:21:46Z (9 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
0d8a9bb0
Parents:
d63f37c
Message:

Nuke imcb_clean_handle(), which was merging handles accidentally

Well, just deprecated and turned into a no-op. It was only used for
jabber anonymous MUCs, but this is something the IRC layer must take
care of. It stripped all whitespace, control and non-ascii characters,
breaking utf8 nicks support and accidentally merging contacts whose
cleaned-up handles were the same string.

For example, you could have two users with nicks ' ' and ' ' (one and
two spaces respectively) and imcb_clean_handle() would just merge them
into a single handle, , which makes them look like a single irc user.
The same thing happens with nicks that are entirely made of utf8.

Thanks to schoppenhauer from #bitlbee for reporting this and preparing a
test case channel!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/conference.c

    rd63f37c rd6e2aa8  
    302302                                        }
    303303                                }
    304 
    305                                 /* Some program-specific restrictions. */
    306                                 imcb_clean_handle(ic, bud->ext_jid);
    307304                        }
    308305                        bud->flags |= JBFLAG_IS_ANONYMOUS;
Note: See TracChangeset for help on using the changeset viewer.