Commit ff286e05 authored by gerv%gerv.net's avatar gerv%gerv.net

Bug 143560 - showdependencytree.cgi eats all available memory if there's a…

Bug 143560 - showdependencytree.cgi eats all available memory if there's a circular dependency. Patch by myk; 2xr=gerv.
parent 34fa0c52
......@@ -69,6 +69,7 @@
[%###########################################################################%]
[% BLOCK display_tree %]
[% tree.$bug_id.seen = 1 %]
<ul>
[% FOREACH dep_id = tree.$bug_id.dependencies %]
[% dep = tree.$dep_id %]
......@@ -86,7 +87,6 @@
[% INCLUDE display_tree bug_id=dep_id
IF dep.dependencies.size > 0 && !dep.seen %]
</li>
[% dep.seen = 1 %]
[% END %]
</ul>
[% END %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment