Review Comments: Check for // instead of https for web-webfonts

This commit is contained in:
Martin Gross
2024-02-28 21:21:52 +01:00
parent f0a76a3ee0
commit cc020f24a2
8 changed files with 13 additions and 24 deletions
+1 -1
View File
@@ -270,7 +270,7 @@ class SecurityMiddleware(MiddlewareMixin):
font_src = set()
if hasattr(request, 'event'):
for font in get_fonts(request.event, pdf_only=False).values():
for font in get_fonts(request.event, pdf_support_required=False).values():
for path in list(nested_dict_values(font)):
font_location = urlparse(path)
if font_location.scheme and font_location.netloc: