ソースを参照

Fixes loading recent lists on wrong meeting name stored.

decodeURIComponent is not needed any more and after adding a validation such meeting name should not happen to be stored.
master
damencho 6年前
コミット
a4cbbccb2a

+ 7
- 0
react/features/invite/functions.js ファイルの表示

577
         roomUrl = decodeURI(roomUrl);
577
         roomUrl = decodeURI(roomUrl);
578
     }
578
     }
579
 
579
 
580
+    // Handles a special case where the room name has % encoded, the decoded will have
581
+    // % followed by a char (non-digit) which is not a valid URL and room name ... so we do not
582
+    // want to show this decoded
583
+    if (roomUrl.match(/.*%[^\d].*/)) {
584
+        return url;
585
+    }
586
+
580
     return roomUrl;
587
     return roomUrl;
581
 }
588
 }

+ 1
- 1
react/features/recent-list/functions.web.js ファイルの表示

18
                     date: item.date,
18
                     date: item.date,
19
                     duration: item.duration,
19
                     duration: item.duration,
20
                     time: [ item.date ],
20
                     time: [ item.date ],
21
-                    title: decodeURIComponent(parseURIString(item.conference).room),
21
+                    title: parseURIString(item.conference).room,
22
                     url: item.conference
22
                     url: item.conference
23
                 };
23
                 };
24
             }));
24
             }));

読み込み中…
キャンセル
保存