]> granicus.if.org Git - ejabberd/commitdiff
caps storage indexed on case insensitive jid
authorChristophe Romain <christophe.romain@process-one.net>
Tue, 21 Jul 2009 20:51:14 +0000 (20:51 +0000)
committerChristophe Romain <christophe.romain@process-one.net>
Tue, 21 Jul 2009 20:51:14 +0000 (20:51 +0000)
SVN Revision: 2382

src/mod_caps.erl

index 4545fe664d283054d3a8d95d77cb9ce92a5a8048..6432c48729777d6f09bb82e3358c8ddc32cab266 100644 (file)
@@ -240,7 +240,8 @@ remove_connection(_SID, JID, _Info) ->
     clear_caps(JID).
 
 jid_to_binary(JID) ->
-    list_to_binary(jlib:jid_to_string(JID)).
+    {U, S, R} = jlib:jid_tolower(JID),
+    list_to_binary(jlib:jid_to_string({U, S, R})).
 
 caps_to_binary(#caps{node = Node, version = Version, exts = Exts}) ->
     BExts = [list_to_binary(Ext) || Ext <- Exts],