Skip to content

Commit a8a7b6f

Browse files
arr fix
1 parent c407c9d commit a8a7b6f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Modules/CIPPCore/Public/Set-CIPPStandardsCompareField.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@ function Set-CIPPStandardsCompareField {
2626
return [string]$JsonValue
2727
}
2828
}
29-
function ConvertTo-NormalizedJson {
29+
function ConvertTo-NormalizedJson {
3030
param([string]$JsonString)
3131

3232
if ([string]::IsNullOrEmpty($JsonString)) {
3333
return $JsonString
3434
}
35+
#Replace quoted numbers with unquoted numbers for consistent comparison
3536
$JsonString = $JsonString -replace ':"(\d+)"([,}])', ':$1$2'
3637
return $JsonString
3738
}

Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardRotateDKIM.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function Invoke-CIPPStandardRotateDKIM {
7979
Add-CIPPBPAField -FieldName 'DKIM' -FieldValue $DKIM -StoreAs json -Tenant $tenant
8080

8181
$CurrentValue = @{
82-
domainsWith1024BitDKIM = if ($DKIM) { $DKIM.Identity } else { @() }
82+
domainsWith1024BitDKIM = @(@($DKIM.Identity) | Where-Object { $_ })
8383
}
8484
$ExpectedValue = @{
8585
domainsWith1024BitDKIM = @()

0 commit comments

Comments
 (0)