Selaa lähdekoodia

(fix): Do not allow external css customization for static prejoin

This prevents CSS spoofing.
j8
Vlad Piersec 4 vuotta sitten
vanhempi
commit
f82d46337b
1 muutettua tiedostoa jossa 0 lisäystä ja 4 poistoa
  1. 0
    4
      static/prejoin.html

+ 0
- 4
static/prejoin.html Näytä tiedosto

16
           const showAvatar = params.get('showAvatar') === 'true';
16
           const showAvatar = params.get('showAvatar') === 'true';
17
           const showJoinActions = params.get('showJoinActions') === 'true';
17
           const showJoinActions = params.get('showJoinActions') === 'true';
18
           const showSkipPrejoin = params.get('showSkipPrejoin') === 'true';
18
           const showSkipPrejoin = params.get('showSkipPrejoin') === 'true';
19
-          const css = params.get('style');
20
-          const style = document.createElement('style');
21
-          style.appendChild(document.createTextNode(css));
22
-          document.head.appendChild(style);
23
 
19
 
24
           JitsiMeetJS.app.renderEntryPoint({
20
           JitsiMeetJS.app.renderEntryPoint({
25
               Component: JitsiMeetJS.app.entryPoints.PREJOIN,
21
               Component: JitsiMeetJS.app.entryPoints.PREJOIN,

Loading…
Peruuta
Tallenna