comfy / comfortable-mexican-sofa

ComfortableMexicanSofa is a powerful Ruby on Rails 5.2+ CMS (Content Management System) Engine
MIT License
2.72k stars 637 forks source link

Fix "Deep tag nesting" error for render pages with hundreds of tags #923

Closed azhuravlev closed 1 year ago

azhuravlev commented 3 years ago

When page has more than 101 tag it can't be rendered because of "Deep tag nesting or recursive nesting detected" will be raised. For solve this problem we can decrement @depth counter after rendering of each tag. In this case exception will be removed for pages with hundreds of tags, but we still able to catch stack overflow.