Sfoglia il codice sorgente

Merge pull request #9110 from jitsi/tavram/fix-case-sensitive-replcement

fix(sip-invite) fix baseurl case sensitive replacement
j8
Avram Tudor 4 anni fa
parent
commit
c851136f8e
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2
    1
      react/features/invite/functions.js

+ 2
- 1
react/features/invite/functions.js Vedi File

@@ -830,8 +830,9 @@ export function inviteSipEndpoints( // eslint-disable-line max-params
830 830
         return Promise.resolve();
831 831
     }
832 832
 
833
+    const regex = new RegExp(`/${roomName}`, 'i');
833 834
     const baseUrl = Object.assign(new URL(locationURL.toString()), {
834
-        pathname: locationURL.pathname.replace(`/${roomName}`, ''),
835
+        pathname: locationURL.pathname.replace(regex, ''),
835 836
         hash: '',
836 837
         search: ''
837 838
     });

Loading…
Annulla
Salva