mirror of
https://github.com/home-assistant/core.git
synced 2025-08-14 01:55:18 +02:00
Bugfix/9811 jinja autoescape (#9842)
* Added autoescape kwarg to Jinja environment * Removed extra comma
This commit is contained in:
committed by
Paulus Schoutsen
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/')
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user