浏览代码

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.
j8
damencho 5 年前
父节点
当前提交
a4cbbccb2a
共有 2 个文件被更改,包括 8 次插入1 次删除
  1. 7
    0
      react/features/invite/functions.js
  2. 1
    1
      react/features/recent-list/functions.web.js

+ 7
- 0
react/features/invite/functions.js 查看文件

@@ -577,5 +577,12 @@ export function _decodeRoomURI(url: string) {
577 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 587
     return roomUrl;
581 588
 }

+ 1
- 1
react/features/recent-list/functions.web.js 查看文件

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

正在加载...
取消
保存