From fc68174232b568b94b5334dcb5baac7fe8f41891 Mon Sep 17 00:00:00 2001 From: Ryan Bolger Date: Thu, 27 Apr 2023 13:11:08 -0700 Subject: [PATCH] fix url encoding for boolean values in Get-IBObject filters passed by hashtable --- Posh-IBWAPI/Public/Get-IBObject.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Posh-IBWAPI/Public/Get-IBObject.ps1 b/Posh-IBWAPI/Public/Get-IBObject.ps1 index 82a5582..2b2bb08 100644 --- a/Posh-IBWAPI/Public/Get-IBObject.ps1 +++ b/Posh-IBWAPI/Public/Get-IBObject.ps1 @@ -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())) ) } }