SEBWIN-449: Improved replacement of scheme for server URL.

This commit is contained in:
Damian Büchel 2021-04-13 16:57:11 +02:00
parent 4286291877
commit 42c614cf24

View file

@ -114,7 +114,7 @@ namespace SafeExamBrowser.Proctoring
logger.Info("Proctoring instruction received.");
settings.JitsiMeet.RoomName = roomName;
settings.JitsiMeet.ServerUrl = serverUrl.Replace(Uri.UriSchemeHttps, "").Replace(Uri.UriSchemeHttp, "").Replace(Uri.SchemeDelimiter, "");
settings.JitsiMeet.ServerUrl = serverUrl.Replace($"{Uri.UriSchemeHttp}{Uri.SchemeDelimiter}", "").Replace($"{Uri.UriSchemeHttps}{Uri.SchemeDelimiter}", "");
settings.JitsiMeet.Token = token;
StopProctoring();