Forum OpenACS Development: Response to rp_serve_abstract_file and PerformanceModeP

Collapse
Posted by Lars Pind on
Given how easy it is to implement recursion detection, it might be worth it:
global __rp_internal_redirect_recursion_counter
if { ![info exists __rp_internal_redirect_recursion_counter] } {
    set __rp_internal_redirect_recursion_counter 0
} elseif { $__rp_internal_redirect_recursion_counter > 10 } {
    error "rp_internal_redirect: Recursion limit exceeded."
}
If you place this at the top of the "rp_internal_redirect" proc, that should work, no?

/Lars