SEBWIN-913: Removed URLs from browser meta data for screen proctoring.

This commit is contained in:
Damian Büchel 2024-07-25 17:14:17 +02:00
parent d4f5f203db
commit ede6a926cc

View file

@ -26,7 +26,6 @@ namespace SafeExamBrowser.Proctoring.ScreenProctoring.Data
private string applicationInfo; private string applicationInfo;
private string browserInfo; private string browserInfo;
private string browserInfoWithoutUrls;
private TimeSpan elapsed; private TimeSpan elapsed;
private string triggerInfo; private string triggerInfo;
private string urls; private string urls;
@ -76,7 +75,7 @@ namespace SafeExamBrowser.Proctoring.ScreenProctoring.Data
CaptureMouseTrigger(mouse); CaptureMouseTrigger(mouse);
} }
logger.Debug($"Captured metadata: {applicationInfo} / {browserInfoWithoutUrls} / {triggerInfo} / {urlCount} URL(s) / {windowTitle}."); logger.Debug($"Captured metadata: {applicationInfo} / {browserInfo} / {urlCount} URL(s) / {triggerInfo} / {windowTitle}.");
} }
private void CaptureApplicationData() private void CaptureApplicationData()
@ -101,8 +100,7 @@ namespace SafeExamBrowser.Proctoring.ScreenProctoring.Data
{ {
var windows = browser.GetWindows(); var windows = browser.GetWindows();
browserInfo = string.Join(", ", windows.Select(w => $"{(w.IsMainWindow ? "Main" : "Additional")} Window: {w.Title} ({w.Url})")); browserInfo = string.Join(", ", windows.Select(w => $"{(w.IsMainWindow ? "Main" : "Additional")} Window: {w.Title}"));
browserInfoWithoutUrls = string.Join(", ", windows.Select(w => $"{(w.IsMainWindow ? "Main" : "Additional")} Window: {w.Title}"));
urls = string.Join(", ", windows.Select(w => w.Url)); urls = string.Join(", ", windows.Select(w => w.Url));
urlCount = windows.Count(); urlCount = windows.Count();
} }
@ -165,7 +163,6 @@ namespace SafeExamBrowser.Proctoring.ScreenProctoring.Data
{ {
applicationInfo = "-"; applicationInfo = "-";
browserInfo = "-"; browserInfo = "-";
browserInfoWithoutUrls = "-";
triggerInfo = "-"; triggerInfo = "-";
urls = "-"; urls = "-";
windowTitle = "-"; windowTitle = "-";