Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version: 2.10.*
When exception is thrown inside {capture} tag, ob_get_clean isn't called and all output is captured. Related with: 075604d
{capture}
ob_get_clean
Create exception inside {capture} tag:
{capture $foo} {$bar->undefinedMethod()} {/capture}
This will compile to php code:
ob_start(function () {}); echo ' '; echo LR\Filters::escapeHtmlText($bar->undefinedMethod()) /* line 2 */; echo "\n"; $ʟ_fi = new LR\FilterInfo('html'); $foo = ob_get_length() ? new LR\Html(ob_get_clean()) : ob_get_clean();
And once exception is thrown, then output is bufferred and no data are send.
End output buffering in case of error, to allow output (like error page) to render.
The text was updated successfully, but these errors were encountered:
Template::render() restores output buffer [Closes #260]
ad6f424
e32b79e
f70000a
No branches or pull requests
Version: 2.10.*
Bug Description
When exception is thrown inside
{capture}
tag,ob_get_clean
isn't called and all output is captured.Related with: 075604d
Steps To Reproduce
Create exception inside
{capture}
tag:This will compile to php code:
And once exception is thrown, then output is bufferred and no data are send.
Expected Behavior
End output buffering in case of error, to allow output (like error page) to render.
The text was updated successfully, but these errors were encountered: