feat: remove .html and .svg from allowed upload types and MIME mappings
Remove HTML and SVG file extensions from the ALLOWED_UPLOAD_TYPES dictionary and their corresponding MIME type entries from MIME_TO_EXT in attachments.py, preventing users from uploading these potentially unsafe file formats through the API.
This commit is contained in:
@@ -131,7 +131,7 @@ def test_audit_log_pagination_preserves_filters(alice):
|
||||
assert "event_key=security.authz.denied" in href
|
||||
assert "page=2" in href
|
||||
next_link.first.click()
|
||||
page.wait_for_url("**page=2**", wait_until="domcontentloaded")
|
||||
page.wait_for_url("**/admin/audit-log?**page=2**", wait_until="domcontentloaded")
|
||||
assert "event_key=security.authz.denied" in page.url
|
||||
# the filter is still applied on page 2: every visible event badge matches
|
||||
badges = page.locator(
|
||||
|
||||
Reference in New Issue
Block a user