mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Secure jinja scaping characters
This commit is contained in:
parent
f9711fa10a
commit
59ed0987b2
3 changed files with 5 additions and 0 deletions
3
RELEASE.md
Normal file
3
RELEASE.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
Release type: minor
|
||||
|
||||
Set `autoescape=True` for jinja2
|
||||
|
|
@ -86,6 +86,7 @@ class Generator:
|
|||
), # explicit ones
|
||||
]
|
||||
),
|
||||
autoescape=True,
|
||||
**self.settings["JINJA_ENVIRONMENT"],
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ _jinja_env = Environment(
|
|||
loader=FileSystemLoader(_TEMPLATES_DIR),
|
||||
trim_blocks=True,
|
||||
keep_trailing_newline=True,
|
||||
autoescape=True,
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue