Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unpickle context only from
phased
blocks
Before this commit `utils.second_pass_render` tried to unpickle stashed context from all bits of content resulting from splitting of template by `PHASED_SECRET_DELIMITER`. Only odd bits are results of `phased` block rendering, so only those bits contain stashed context. Even bits can't contain stashed context and since they are results of first pass rendering they can be arbitrary long and even for content of sane length searching for regular expression match done in `unpickle_context` can take insanely long time. Fixed by unpickling context only from odd bits. Fixes: codysoyland#9
- Loading branch information