Selaa lähdekoodia

fix: Enforces namespace for json-message.

master
damencho 3 kuukautta sitten
vanhempi
commit
86b762276c
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1
    1
      modules/xmpp/ChatRoom.js
  2. 1
    1
      modules/xmpp/xmpp.js

+ 1
- 1
modules/xmpp/ChatRoom.js Näytä tiedosto

@@ -1281,7 +1281,7 @@ export default class ChatRoom extends Listenable {
1281 1281
             }
1282 1282
         }
1283 1283
 
1284
-        const jsonMessage = $(msg).find('>json-message').text();
1284
+        const jsonMessage = $(msg).find('>json-message[xmlns="http://jitsi.org/jitmeet"]').text();
1285 1285
 
1286 1286
         if (jsonMessage) {
1287 1287
             const parsedJson = this.xmpp.tryParseJSONAndVerify(jsonMessage);

+ 1
- 1
modules/xmpp/xmpp.js Näytä tiedosto

@@ -1082,7 +1082,7 @@ export default class XMPP extends Listenable {
1082 1082
             return true;
1083 1083
         }
1084 1084
 
1085
-        const jsonMessage = $(msg).find('>json-message')
1085
+        const jsonMessage = $(msg).find('>json-message[xmlns="http://jitsi.org/jitmeet"]')
1086 1086
             .text();
1087 1087
         const parsedJson = this.tryParseJSONAndVerify(jsonMessage);
1088 1088
 

Loading…
Peruuta
Tallenna