Don't overwrite builtin jinja2 filters with tests (#37881)

* Don't overwrite builtin jinja2 filters with tests. Fixes #37856

* Fix tests and other callers of _get_filters
This commit is contained in:
Matt Martz 2018-03-26 12:06:00 -05:00 committed by Adam Miller
parent 169209c32a
commit 1f824bd620
3 changed files with 12 additions and 4 deletions

View file

@ -176,7 +176,7 @@ class Conditional:
)
try:
e = templar.environment.overlay()
e.filters.update(templar._get_filters())
e.filters.update(templar._get_filters(e.filters))
e.tests.update(templar._get_tests())
res = e._parse(conditional, None, None)