SEBWIN-427: Ensured seb(s) URLs are correctly handled for secure session reconfiguration.
This commit is contained in:
		
							parent
							
								
									3698d7dabb
								
							
						
					
					
						commit
						7d55552889
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -341,8 +341,9 @@ namespace SafeExamBrowser.Client
 | 
			
		|||
				{
 | 
			
		||||
					var expression = Regex.Escape(Settings.Security.ReconfigurationUrl).Replace(@"\*", ".*");
 | 
			
		||||
					var regex = new Regex($"^{expression}$", RegexOptions.IgnoreCase);
 | 
			
		||||
					var sebUrl = args.Url.Replace(Uri.UriSchemeHttp, context.AppConfig.SebUriScheme).Replace(Uri.UriSchemeHttps, context.AppConfig.SebUriSchemeSecure);
 | 
			
		||||
 | 
			
		||||
					allow = Settings.Security.AllowReconfiguration && regex.IsMatch(args.Url);
 | 
			
		||||
					allow = Settings.Security.AllowReconfiguration && (regex.IsMatch(args.Url) || regex.IsMatch(sebUrl));
 | 
			
		||||
				}
 | 
			
		||||
				else
 | 
			
		||||
				{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue