Skip to content

Commit

Permalink
Cast Vulnerable to [bool]
Browse files Browse the repository at this point in the history
  • Loading branch information
DanGough committed Dec 8, 2023
1 parent 8336973 commit b2b32ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PoshCVE/Public/Get-CVE.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ function Get-CVE {
# If we're not filtering, or if the affected product matches the Part, Vendor and Product (we are using -like for wildcard search, and null values were converted to * earlier on)
if (!$FilterAffectedProducts -or ($matches[1] -like $Part -and $matches[2] -like $Vendor -and $matches[3] -like $Product)) {
[PSCustomObject]@{
Vulnerable = $MatchCriteria.vulnerable
Vulnerable = [bool]$MatchCriteria.vulnerable
Criteria = $MatchCriteria.criteria
MatchCriteriaID = $MatchCriteria.matchCriteriaId
ProductType = $AffectedProductType
Expand Down

0 comments on commit b2b32ff

Please sign in to comment.