From 7623168410688520f77c7c3d1323fb962abbfbce Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Wed, 29 Dec 2021 12:26:40 -0800 Subject: [PATCH] Fixes search html And suppresses more warnings --- bookwyrm/templates/search/layout.html | 2 +- bookwyrm/tests/validate_html.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bookwyrm/templates/search/layout.html b/bookwyrm/templates/search/layout.html index 239586ef..af912945 100644 --- a/bookwyrm/templates/search/layout.html +++ b/bookwyrm/templates/search/layout.html @@ -13,7 +13,7 @@
- +
diff --git a/bookwyrm/tests/validate_html.py b/bookwyrm/tests/validate_html.py index db0e832a..0a3f6177 100644 --- a/bookwyrm/tests/validate_html.py +++ b/bookwyrm/tests/validate_html.py @@ -15,7 +15,11 @@ def validate_html(html): errors = "\n".join( e for e in errors.split("\n") - if "&book" not in e and "id and name attribute" not in e + if "&book" not in e + and "&type" not in e + and "id and name attribute" not in e + and "illegal characters found in URI" not in e + and "escaping malformed URI reference" not in e ) if errors: raise Exception(errors)