From c0e418d90082ccfffbd69e5fadcfd7fd87176108 Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Wed, 21 Mar 2018 18:50:59 -0400 Subject: [PATCH] Remove static_html template code (#596) --- CTFd/views.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CTFd/views.py b/CTFd/views.py index 2905963f..611f60e9 100644 --- a/CTFd/views.py +++ b/CTFd/views.py @@ -115,10 +115,7 @@ def custom_css(): def static_html(template): page = utils.get_page(template) if page is None: - try: - return render_template('%s.html' % template) - except TemplateNotFound: - abort(404) + abort(404) else: if page.auth_required and utils.authed() is False: return redirect(url_for('auth.login', next=request.path))