Skip to content

Commit 5535303

Browse files
committed
spam filter fix
add text replacement to email
1 parent 44bd89e commit 5535303

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,13 @@ function Invoke-CIPPStandardSpamFilterPolicy {
151151
}
152152

153153
# Remove optional block lists if not configured
154-
if ($Settings.EnableLanguageBlockList -eq $true) {
154+
if ($Settings.EnableLanguageBlockList -eq $true -and $Settings.LanguageBlockList.value) {
155155
$cmdParams.Add('EnableLanguageBlockList', $Settings.EnableLanguageBlockList)
156156
$cmdParams.Add('LanguageBlockList', $Settings.LanguageBlockList.value)
157157
} else {
158158
$cmdParams.Add('EnableLanguageBlockList', $false)
159159
}
160-
if ($Settings.EnableRegionBlockList -eq $true) {
160+
if ($Settings.EnableRegionBlockList -eq $true -and $Settings.RegionBlockList.value) {
161161
$cmdParams.Add('EnableRegionBlockList', $Settings.EnableRegionBlockList)
162162
$cmdParams.Add('RegionBlockList', $Settings.RegionBlockList.value)
163163
} else {

0 commit comments

Comments
 (0)