Commit 42cbe08
committed
fix: add max depth limit to source_page_uid ancestor chain traversal
Prevent unbounded while loop when following the source_page_uid chain
to find briefing data from ancestor pages. Limits traversal to 10
levels, which is more than sufficient for realistic re-generation chains.1 parent 39b5044 commit 42cbe08
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | | - | |
| 522 | + | |
| 523 | + | |
523 | 524 | | |
524 | 525 | | |
525 | 526 | | |
| |||
0 commit comments