Commit e0b5a39
committed
security: Fix ancestry validation to fail safely
- Return false instead of true when ancestry validation fails
- Change warning to error message for clarity
- Prevents potentially incorrect updates when validation is uncertain
- Follows fail-safe principle for security-critical operations1 parent 0cea893 commit e0b5a39
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
0 commit comments