From ba128bb6ac3368b43a182f038341837bad47b059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Wed, 26 Apr 2023 15:05:23 +0200 Subject: [PATCH] SEBWIN-702: Fixed bug with quit URL where URLs not exactly matching the quit URL would also trigger a shutdown. --- SafeExamBrowser.Browser/Handlers/RequestHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SafeExamBrowser.Browser/Handlers/RequestHandler.cs b/SafeExamBrowser.Browser/Handlers/RequestHandler.cs index 3b6782eb..3e34af3c 100644 --- a/SafeExamBrowser.Browser/Handlers/RequestHandler.cs +++ b/SafeExamBrowser.Browser/Handlers/RequestHandler.cs @@ -150,7 +150,7 @@ namespace SafeExamBrowser.Browser.Handlers { if (quitUrlPattern == default) { - quitUrlPattern = Regex.Escape(settings.QuitUrl.TrimEnd('/')) + @"\/?"; + quitUrlPattern = $"^{Regex.Escape(settings.QuitUrl.TrimEnd('/'))}/?$"; } isQuitUrl = Regex.IsMatch(request.Url, quitUrlPattern, RegexOptions.IgnoreCase);