Преглед изворни кода

Calendar list shouldn't show unnormalised URIs

master
zbettenbuk пре 7 година
родитељ
комит
8c0bb377ba
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5
    1
      react/features/calendar-sync/middleware.js

+ 5
- 1
react/features/calendar-sync/middleware.js Прегледај датотеку

192
             const matches = urlRegExp.exec(field) || schemeRegExp.exec(field);
192
             const matches = urlRegExp.exec(field) || schemeRegExp.exec(field);
193
 
193
 
194
             if (matches) {
194
             if (matches) {
195
-                return matches[0];
195
+                const url = parseURIString(matches[0]);
196
+
197
+                if (url) {
198
+                    return url.toString();
199
+                }
196
             }
200
             }
197
         }
201
         }
198
     }
202
     }

Loading…
Откажи
Сачувај