SEBWIN-314: Fixed two minor issues in legacy filter implementation within config tool.
This commit is contained in:
parent
48511d996c
commit
8714320808
1 changed files with 2 additions and 3 deletions
|
@ -300,15 +300,14 @@ namespace SebWindowsConfig.Utilities
|
|||
return false;
|
||||
}
|
||||
|
||||
if (filterExpression.port != null && URLToFilter.Port != -1 &&
|
||||
URLToFilter.Port != filterExpression.port)
|
||||
if (filterExpression.port != null && URLToFilter.Port != filterExpression.port)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
filterComponent = filterExpression.path;
|
||||
if (filterComponent != null &&
|
||||
!Regex.IsMatch(URLToFilter.AbsolutePath.Trim(new char[] { '/' }), filterComponent.ToString(), RegexOptions.IgnoreCase))
|
||||
!Regex.IsMatch(URLToFilter.AbsolutePath.TrimEnd(new char[] { '/' }), filterComponent.ToString(), RegexOptions.IgnoreCase))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue