From 2547a235c18548adcc8b281180cc01ef3b92b591 Mon Sep 17 00:00:00 2001 From: Adam Cooper Date: Fri, 13 Oct 2017 06:01:29 +0100 Subject: [PATCH] Bugfix/9811 jinja autoescape (#9842) * Added autoescape kwarg to Jinja environment * Removed extra comma --- homeassistant/components/frontend/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/frontend/__init__.py b/homeassistant/components/frontend/__init__.py index 112c93403b0..1820dcdc3f6 100644 --- a/homeassistant/components/frontend/__init__.py +++ b/homeassistant/components/frontend/__init__.py @@ -329,6 +329,7 @@ class IndexView(HomeAssistantView): from jinja2 import FileSystemLoader, Environment self.templates = Environment( + autoescape=True, loader=FileSystemLoader( os.path.join(os.path.dirname(__file__), 'templates/') )