Opened 17 years ago
Closed 12 years ago
#7267 closed defect (bug) (invalid)
Infinite recursion in get_category_parents() and _children()
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Taxonomy | Keywords: | has-patch irish-coffee |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
(In [8299]) Prevent category looping. Props tellyworth. fixes #7267