mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-26 14:10:20 +00:00
Update archivebox/index/html.py
mark_safe is dangerous, as the URL's filename could have malicious HTML fragments in it. Co-authored-by: Nick Sweeting <git@sweeting.me>
This commit is contained in:
parent
1989275944
commit
b647581115
1 changed files with 1 additions and 1 deletions
|
@ -161,4 +161,4 @@ def snapshot_icons(snapshot) -> str:
|
|||
output += '<a href="{}" class="exists-{}" title="{}">{}</a> '.format(canon["archive_org_path"], str(exists),
|
||||
"archive_org", icons.get("archive_org", "?"))
|
||||
|
||||
return format_html('<span class="files-icons" style="font-size: 1.1em; opacity: 0.8">{}<span>', mark_safe(output))
|
||||
return format_html('<span class="files-icons" style="font-size: 1.1em; opacity: 0.8">{}<span>', output)
|
||||
|
|
Loading…
Reference in a new issue