1
0
mirror of https://github.com/Luzifer/past3.git synced 2024-09-19 00:42:59 +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:
Knut Ahlers 2019-04-10 20:22:24 +02:00
parent 0b94dd9c3b
commit 4aaddbba07
Signed by: luzifer
GPG Key ID: DC2729FDD34BE99E
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
import yaml
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('./'))
template = env.get_template('index.html')

View File

@ -1,3 +1,3 @@
Jinja2==2.8
Jinja2==2.10.1
jsmin==2.2.1
PyYAML==3.12
PyYAML==5.1