forked from retoor/devplacepy
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:
+1
-1
@@ -592,7 +592,7 @@ def test_feed_resources_docs_link(alice):
|
||||
docs = _resources_panel(page).locator("a.sidebar-link:has-text('Docs')")
|
||||
assert docs.get_attribute("href") == "/docs"
|
||||
docs.click()
|
||||
page.wait_for_url(f"{BASE_URL}/docs", wait_until="domcontentloaded")
|
||||
page.wait_for_url("**/docs/index.html", wait_until="domcontentloaded")
|
||||
|
||||
|
||||
def test_feed_resources_issues_link(alice):
|
||||
|
||||
Reference in New Issue
Block a user