Infinite recursion in get_category_parents() and _children()
|Reported by:||tellyworth||Owned by:|
These two functions can get stuck in a recursion loop if there's an indirect category hierarchy loop like A -> B -> C -> A.
The patch keeps track of traversed IDs and prevents repetition - there's a name for the algorithm but it escapes me. It increases memory usage but probably not too much - certainly less than infinite recursion does.
Change History (5)
- Milestone changed from 2.6 to Future Release
- Resolution fixed deleted
- Status changed from closed to reopened