From 65c0e04bb3bb1fd715be12f44f44ad05373754c0 Mon Sep 17 00:00:00 2001 From: Jordan Date: Sun, 5 Apr 2020 21:08:55 -0700 Subject: ensure HTML-safety of attributes; only-whitespace values treated as unpopulated --- templates/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/index.html b/templates/index.html index 7bee424..9bf35db 100644 --- a/templates/index.html +++ b/templates/index.html @@ -33,8 +33,8 @@ {% for b, v in books.items() %} - {{ v['title'] }} - {{ v['path'] }} + {{ v['title']|escape }} + {{ v['path']|escape }} {{ v['files']|length }} {{ v['duration_str'] }} {{ v['size_str'] }} -- cgit v1.2.3-54-g00ecf