fix: use form URL for progress requests

This commit is contained in:
2026-08-05 13:13:46 +02:00
parent e061c2b02d
commit f558832cd2
5 changed files with 22 additions and 5 deletions
+15
View File
@@ -0,0 +1,15 @@
from pathlib import Path
def test_form_action_field_cannot_shadow_request_target():
template = (
Path(__file__).parents[1]
/ "netbox_export"
/ "templates"
/ "netbox_export"
/ "dashboard.html"
).read_text(encoding="utf-8")
assert "form.getAttribute('action')" in template
assert "exportForm.action" not in template
assert "importForm.action" not in template