SEBWIN-702: Fixed bug with quit URL where URLs not exactly matching the quit URL would also trigger a shutdown.
This commit is contained in:
parent
250ddb5bc9
commit
ba128bb6ac
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue