mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Bugfix/9811 jinja autoescape (#9842)
* Added autoescape kwarg to Jinja environment * Removed extra comma
This commit is contained in:
parent
bbb406626b
commit
a7f4bcc410
@ -327,6 +327,7 @@ class IndexView(HomeAssistantView):
|
||||
from jinja2 import FileSystemLoader, Environment
|
||||
|
||||
self.templates = Environment(
|
||||
autoescape=True,
|
||||
loader=FileSystemLoader(
|
||||
os.path.join(os.path.dirname(__file__), 'templates/')
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user