fix(restore): correct sub-key path matching in backup allow-list validation (#645)

This commit is contained in:
HetCreep
2026-06-21 20:37:29 +02:00
committed by GitHub
parent 87b3035eda
commit 82894176d9
@@ -385,7 +385,7 @@ function Find-RegistryAllowListPlanMatch {
continue
}
$subKeyPrefix = "$($plan.NormalizedPath)\\"
$subKeyPrefix = "$($plan.NormalizedPath)\"
if ($NormalizedPath.StartsWith($subKeyPrefix, [System.StringComparison]::OrdinalIgnoreCase)) {
return [PSCustomObject]@{
IsDescendant = $true