SEBWIN-314: Fixed two minor issues in legacy filter implementation within config tool.

This commit is contained in:
dbuechel 2019-11-21 16:10:30 +01:00
parent 48511d996c
commit 8714320808

View file

@ -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;
} }