Bug EMBED Recursion

There is a bug in this version
P

pegasus

Guest
Currently there is no protection against scenarios that result in recursion when using the EMBED BB-Code, apart from maximum template depth which is hardcoded at 50.
Code:

ErrorException: Template error: [E_USER_WARNING] Max template execution depth reached src/XF/Template/Templater.php:1697

The most egregious example is:
1. Write a post with content.
2. Edit the post, adding an EMBED that refers to the same post.
3. The result:
test-embed.webp

There are other, less obvious variations of this, such as...

Read more

Continue reading...