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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (filterExpression.port != null && URLToFilter.Port != -1 &&
|
if (filterExpression.port != null && URLToFilter.Port != filterExpression.port)
|
||||||
URLToFilter.Port != filterExpression.port)
|
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
filterComponent = filterExpression.path;
|
filterComponent = filterExpression.path;
|
||||||
if (filterComponent != null &&
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue