mirror of
https://github.com/Luzifer/past3.git
synced 2024-12-22 20:31:16 +00:00
Fix: Vulnerabilities in Jinja2 <2.8.1 and PyYAML <4.2b1
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
0b94dd9c3b
commit
4aaddbba07
2 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
||||||
import yaml
|
import yaml
|
||||||
from jinja2 import Environment, FileSystemLoader
|
from jinja2 import Environment, FileSystemLoader
|
||||||
|
|
||||||
config = yaml.load(open('config.yml', 'r').read())
|
config = yaml.load(open('config.yml', 'r').read(), Loader=yaml.SafeLoader)
|
||||||
|
|
||||||
env = Environment(loader=FileSystemLoader('./'))
|
env = Environment(loader=FileSystemLoader('./'))
|
||||||
template = env.get_template('index.html')
|
template = env.get_template('index.html')
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
Jinja2==2.8
|
Jinja2==2.10.1
|
||||||
jsmin==2.2.1
|
jsmin==2.2.1
|
||||||
PyYAML==3.12
|
PyYAML==5.1
|
||||||
|
|
Loading…
Reference in a new issue