From: Michael Tremer Date: Tue, 21 Jan 2025 14:55:12 +0000 (+0000) Subject: web: Fail if template variables are not defined X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20d7d0c22d808708decb58f8635c12778a6885b2;p=pbs.git web: Fail if template variables are not defined Signed-off-by: Michael Tremer --- diff --git a/src/web/base.py b/src/web/base.py index df79677b..959ddf7f 100644 --- a/src/web/base.py +++ b/src/web/base.py @@ -251,6 +251,9 @@ class BaseHandler(tornado.web.RequestHandler): # Automatically escape autoescape = True, + # Fail if we are trying to access undefined variables + undefined = jinja2.StrictUndefined, + # Enable asyncio enable_async = True,