win_iis_webapppool: stop any passwords from being returned (#33931)

This commit is contained in:
Jordan Borean 2017-12-15 09:50:44 +10:00 committed by GitHub
commit 0ca828ebab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View file

@ -305,9 +305,11 @@ foreach ($element in $elements) {
foreach ($attribute in $attribute_collection) {
$attribute_name = $attribute.Name
$attribute_value = $attribute_parent.$attribute_name
if ($attribute_name -notlike "*password*") {
$attribute_value = $attribute_parent.$attribute_name
$result.info.$element.Add($attribute_name, $attribute_value)
$result.info.$element.Add($attribute_name, $attribute_value)
}
}
}