Преглед на файлове

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

master
Boris Grozev преди 10 години
родител
ревизия
79ac1e800f
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1
    2
      modules/xmpp/strophe.jingle.js

+ 1
- 2
modules/xmpp/strophe.jingle.js Целия файл

@@ -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…
Отказ
Запис