neddit

the frontend of the frontpage of the internet  https://neddit.ce9e.org
git clone https://git.ce9e.org/neddit.git

commit
43817b22ed9c743a130bbbb3bf3a450f59ee9f3c
parent
ec4a288308d38c86af14f47dda8c9d11b0d822d5
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2022-03-25 06:38
security: enable autoescaping

Diffstat

M neddit.py 5 ++++-

1 files changed, 4 insertions, 1 deletions


diff --git a/neddit.py b/neddit.py

@@ -9,7 +9,10 @@ from flask import request
    9     9 from flask import abort
   10    10 
   11    11 app = Flask(__name__)
   12    -1 env = jinja2.Environment(loader=jinja2.FileSystemLoader('templates'))
   -1    12 env = jinja2.Environment(
   -1    13 	loader=jinja2.FileSystemLoader('templates'),
   -1    14 	autoescape=jinja2.select_autoescape(default=True),
   -1    15 )
   13    16 
   14    17 
   15    18 def relative_datetime(value):