Skip to content

Commit

Permalink
fix url encoding for boolean values in Get-IBObject filters passed by…
Browse files Browse the repository at this point in the history
… hashtable
  • Loading branch information
rmbolger committed Apr 27, 2023
1 parent 04d319a commit fc68174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Posh-IBWAPI/Public/Get-IBObject.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function Get-IBObject
# URL encode the pairs and join with '=' before adding
$Filter.GetEnumerator().foreach{
$queryargs.Add(
('{0}={1}' -f [Web.HttpUtility]::UrlEncode($_.Key),[Web.HttpUtility]::UrlEncode($_.Value))
('{0}={1}' -f [Web.HttpUtility]::UrlEncode($_.Key),[Web.HttpUtility]::UrlEncode($_.Value.ToString()))
)
}
}
Expand Down

0 comments on commit fc68174

Please sign in to comment.