From ede6a926cce2cbf0a4e5a01bd72e2551682c52c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Thu, 25 Jul 2024 17:14:17 +0200 Subject: [PATCH] SEBWIN-913: Removed URLs from browser meta data for screen proctoring. --- .../ScreenProctoring/Data/MetaDataAggregator.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/SafeExamBrowser.Proctoring/ScreenProctoring/Data/MetaDataAggregator.cs b/SafeExamBrowser.Proctoring/ScreenProctoring/Data/MetaDataAggregator.cs index b74b383a..c928f103 100644 --- a/SafeExamBrowser.Proctoring/ScreenProctoring/Data/MetaDataAggregator.cs +++ b/SafeExamBrowser.Proctoring/ScreenProctoring/Data/MetaDataAggregator.cs @@ -26,7 +26,6 @@ namespace SafeExamBrowser.Proctoring.ScreenProctoring.Data private string applicationInfo; private string browserInfo; - private string browserInfoWithoutUrls; private TimeSpan elapsed; private string triggerInfo; private string urls; @@ -76,7 +75,7 @@ namespace SafeExamBrowser.Proctoring.ScreenProctoring.Data 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() @@ -101,8 +100,7 @@ namespace SafeExamBrowser.Proctoring.ScreenProctoring.Data { var windows = browser.GetWindows(); - browserInfo = string.Join(", ", windows.Select(w => $"{(w.IsMainWindow ? "Main" : "Additional")} Window: {w.Title} ({w.Url})")); - browserInfoWithoutUrls = string.Join(", ", windows.Select(w => $"{(w.IsMainWindow ? "Main" : "Additional")} Window: {w.Title}")); + browserInfo = string.Join(", ", windows.Select(w => $"{(w.IsMainWindow ? "Main" : "Additional")} Window: {w.Title}")); urls = string.Join(", ", windows.Select(w => w.Url)); urlCount = windows.Count(); } @@ -165,7 +163,6 @@ namespace SafeExamBrowser.Proctoring.ScreenProctoring.Data { applicationInfo = "-"; browserInfo = "-"; - browserInfoWithoutUrls = "-"; triggerInfo = "-"; urls = "-"; windowTitle = "-";