mirror of
https://github.com/Yamato-Security/WELA.git
synced 2025-12-07 01:32:50 +01:00
fix: info count
This commit is contained in:
6
WELA.ps1
6
WELA.ps1
@@ -71,7 +71,7 @@
|
|||||||
foreach ($level in [WELA]::Levels) {
|
foreach ($level in [WELA]::Levels) {
|
||||||
$count = $this.RulesCount[$level]
|
$count = $this.RulesCount[$level]
|
||||||
if ($level -eq "informational") {
|
if ($level -eq "informational") {
|
||||||
$ruleCounts += "info:$($count)"
|
$ruleCounts += "info:$([string]$count)"
|
||||||
} else {
|
} else {
|
||||||
$ruleCounts += "$($level):$($count), "
|
$ruleCounts += "$($level):$($count), "
|
||||||
}
|
}
|
||||||
@@ -1016,7 +1016,7 @@ function AuditLogSetting {
|
|||||||
foreach ($level in [WELA]::Levels) {
|
foreach ($level in [WELA]::Levels) {
|
||||||
$count = $_.RulesCount[$level]
|
$count = $_.RulesCount[$level]
|
||||||
if ($level -eq "informational") {
|
if ($level -eq "informational") {
|
||||||
$ruleCounts += "info:$($count)"
|
$ruleCounts += "info:$([string]$count)"
|
||||||
} else {
|
} else {
|
||||||
$ruleCounts += "$($level):$($count), "
|
$ruleCounts += "$($level):$($count), "
|
||||||
}
|
}
|
||||||
@@ -1034,7 +1034,7 @@ function AuditLogSetting {
|
|||||||
foreach ($level in [WELA]::Levels) {
|
foreach ($level in [WELA]::Levels) {
|
||||||
$count = $_.RulesCount[$level]
|
$count = $_.RulesCount[$level]
|
||||||
if ($level -eq "informational") {
|
if ($level -eq "informational") {
|
||||||
$ruleCounts += "info:$($count)"
|
$ruleCounts += "info:$([string]$count)"
|
||||||
} else {
|
} else {
|
||||||
$ruleCounts += "$($level):$($count), "
|
$ruleCounts += "$($level):$($count), "
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user