mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-07-02 22:58:34 +00:00
fix(restore): correct sub-key path matching in backup allow-list validation (#645)
This commit is contained in:
@@ -385,7 +385,7 @@ function Find-RegistryAllowListPlanMatch {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
$subKeyPrefix = "$($plan.NormalizedPath)\\"
|
$subKeyPrefix = "$($plan.NormalizedPath)\"
|
||||||
if ($NormalizedPath.StartsWith($subKeyPrefix, [System.StringComparison]::OrdinalIgnoreCase)) {
|
if ($NormalizedPath.StartsWith($subKeyPrefix, [System.StringComparison]::OrdinalIgnoreCase)) {
|
||||||
return [PSCustomObject]@{
|
return [PSCustomObject]@{
|
||||||
IsDescendant = $true
|
IsDescendant = $true
|
||||||
|
|||||||
Reference in New Issue
Block a user