Bugfix/9811 jinja autoescape (#9842)
* Added autoescape kwarg to Jinja environment * Removed extra commapull/9885/head
parent
fdb698bef0
commit
2547a235c1
|
@ -329,6 +329,7 @@ class IndexView(HomeAssistantView):
|
||||||
from jinja2 import FileSystemLoader, Environment
|
from jinja2 import FileSystemLoader, Environment
|
||||||
|
|
||||||
self.templates = Environment(
|
self.templates = Environment(
|
||||||
|
autoescape=True,
|
||||||
loader=FileSystemLoader(
|
loader=FileSystemLoader(
|
||||||
os.path.join(os.path.dirname(__file__), 'templates/')
|
os.path.join(os.path.dirname(__file__), 'templates/')
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue