]> granicus.if.org Git - ejabberd/commitdiff
Use bare jid when processing roster subscriptions
authorPaweł Chmielowski <pchmielowski@process-one.net>
Wed, 27 Dec 2017 15:14:03 +0000 (16:14 +0100)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Wed, 27 Dec 2017 15:14:47 +0000 (16:14 +0100)
src/mod_roster.erl

index a86b50d98af0aace5be145ce4a7fb6f07e91b84e..14ec23fe14b8983a02709815878a4e1314db7b4b 100644 (file)
@@ -571,7 +571,7 @@ process_subscription(Direction, User, Server, JID1,
                     Type, Reason) ->
     LUser = jid:nodeprep(User),
     LServer = jid:nameprep(Server),
-    LJID = jid:tolower(JID1),
+    LJID = jid:tolower(jid:remove_resource(JID1)),
     F = fun () ->
                Item = get_roster_item(LUser, LServer, LJID),
                NewState = case Direction of