Skip to content
New issue

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

Add setting to limit the size of output when evaluating a template #529

Merged
merged 3 commits into from
Jul 31, 2020

Conversation

vgrigoriu
Copy link
Contributor

Should fix #526.

The solution is to have a shared counter of all the chars written by all the writers involved in evaluating a template and check each time if we are over the limit. This is opt-in. I tried to be detailed in comments and high-level in the public docs.

@ebussieres ebussieres added this to the 3.1.5 milestone Jul 31, 2020
@ebussieres ebussieres merged commit 4d27af7 into PebbleTemplates:master Jul 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Protecting from macro bombs
2 participants