##// END OF EJS Templates
Fix XSS reported on Security list...
Matthias Bussonnier -
Show More
@@ -158,7 +158,9 b' class NotebookWebApplication(web.Application):'
158 _template_path = (_template_path,)
158 _template_path = (_template_path,)
159 template_path = [os.path.expanduser(path) for path in _template_path]
159 template_path = [os.path.expanduser(path) for path in _template_path]
160
160
161 jenv_opt = jinja_env_options if jinja_env_options else {}
161 jenv_opt = {"autoescape": True}
162 jenv_opt.update(jinja_env_options if jinja_env_options else {})
163
162 env = Environment(loader=FileSystemLoader(template_path), **jenv_opt)
164 env = Environment(loader=FileSystemLoader(template_path), **jenv_opt)
163
165
164 sys_info = get_sys_info()
166 sys_info = get_sys_info()
General Comments 0
You need to be logged in to leave comments. Login now