Browse Source

Verify full (and not bare) JID of the Jingle sender, since everyone in the MUC has the same bare JID.

master
Boris Grozev 10 years ago
parent
commit
79ac1e800f
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      modules/xmpp/strophe.jingle.js

+ 1
- 2
modules/xmpp/strophe.jingle.js View File

@@ -88,9 +88,8 @@ module.exports = function(XMPP, eventEmitter)
88 88
                     this.connection.send(ack);
89 89
                     return true;
90 90
                 }
91
-                // compare from to sess.peerjid (bare jid comparison for later compat with message-mode)
92 91
                 // local jid is not checked
93
-                if (Strophe.getBareJidFromJid(fromJid) != Strophe.getBareJidFromJid(sess.peerjid)) {
92
+                if (fromJid != sess.peerjid) {
94 93
                     console.warn('jid mismatch for session id', sid, fromJid, sess.peerjid);
95 94
                     ack.type = 'error';
96 95
                     ack.c('error', {type: 'cancel'})

Loading…
Cancel
Save