Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public class KnownExploitableTypesTests
[DataRow("system.management.automation.psobject", true)]
[DataRow("system.string", false)]
[DataRow("SYSTEM.INT32", false)]
[DataRow("Token", false)]
public void IsKnownExploitableTypeTest(string typeFullName, bool expected)
{
bool actual = KnownExploitableTypes.IsKnownExploitableType(typeFullName);
Expand Down
2 changes: 1 addition & 1 deletion SecureCoding/SecureSerialization/KnownExploitableTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static bool IsKnownExploitableType(string typeFullName)
throw new ArgumentException(nameof(typeFullName));
}

return knownExploitableTypes.Exists(t => t.ToLowerInvariant().Contains(typeFullName.ToLowerInvariant()));
return knownExploitableTypes.Exists(t => typeFullName.ToLowerInvariant().Contains(t.ToLowerInvariant()));
}

/// <summary>
Expand Down