Skip to content

Commit 67fa371

Browse files
secure score
1 parent 7e5b8f4 commit 67fa371

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecBrandingSettings.ps1

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ Function Invoke-ExecBrandingSettings {
5151
} else {
5252
$StatusCode = [HttpStatusCode]::BadRequest
5353
$Results = 'Error: Invalid color format. Please use hex format (e.g., #F77F00)'
54-
break
5554
}
5655
}
5756

@@ -68,12 +67,10 @@ Function Invoke-ExecBrandingSettings {
6867
} else {
6968
$StatusCode = [HttpStatusCode]::BadRequest
7069
$Results = 'Error: Image size must be less than 2MB'
71-
break
7270
}
7371
} catch {
7472
$StatusCode = [HttpStatusCode]::BadRequest
7573
$Results = 'Error: Invalid base64 image data'
76-
break
7774
}
7875
} elseif ($Logo -eq $null -or $Logo -eq '') {
7976
$BrandingConfig.logo = $null

0 commit comments

Comments
 (0)