Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Enforce sandboxed rendering for Jinja2 templates.
- This forces the Jinja2 template renderer to use a `SandboxedEnvironment` - This addresses any unsafe code execution everywhere `render_jinja2` is called. - Test added to assert that unsafe attributes cannot be accessed and will result in a `SecurityError`. - Documentation referencing direct use of `jinja2.Template` replaced with `render_jinja2`
- Loading branch information
Showing
3 changed files
with
24 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters