Skip to content

Commit c6b1ad4

Browse files
committed
Fix Exclude File when full path contains traversals
1 parent b54c93c commit c6b1ad4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coverlet.core/Helpers/InstrumentationHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public static string[] GetExcludedFiles(string[] excludes)
200200
{
201201
matcherDict.Add(root, new Matcher());
202202
}
203-
matcherDict[root].AddInclude(excludeRule.Substring(root.Length));
203+
matcherDict[root].AddInclude(Path.GetFullPath(excludeRule).Substring(root.Length));
204204
}
205205
else
206206
{

0 commit comments

Comments
 (0)