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

This commit is contained in:
HetCreep
2026-06-22 01:37:29 +07:00
committed by GitHub
parent 87b3035eda
commit 82894176d9

View File

@@ -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