Skip to content

Commit 960e6da

Browse files
committed
add json escaping
1 parent 21ce75c commit 960e6da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/GraphHelper/New-ExoRequest.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function New-ExoRequest {
5454
Parameters = $Params
5555
}
5656
}
57-
$ExoBody = Get-CIPPTextReplacement -TenantFilter $tenantid -Text $ExoBody
57+
$ExoBody = Get-CIPPTextReplacement -TenantFilter $tenantid -Text $ExoBody -EscapeForJson
5858

5959
$Tenant = Get-Tenants -IncludeErrors | Where-Object { $_.defaultDomainName -eq $tenantid -or $_.customerId -eq $tenantid }
6060
if (-not $Tenant -and $NoAuthCheck -eq $true) {

0 commit comments

Comments
 (0)