Skip to content

Commit a51d0e2

Browse files
authored
allow .fpr extension when importing scan (#12972)
1 parent a39f69a commit a51d0e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dojo/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ class ReImportScanForm(forms.Form):
675675
"Choose from the list or add new tags. Press Enter key to add.")
676676
file = forms.FileField(
677677
widget=forms.widgets.FileInput(
678-
attrs={"accept": ".xml, .csv, .nessus, .json, .jsonl, .html, .js, .zip, .xlsx, .txt, .sarif"},
678+
attrs={"accept": ".xml, .csv, .nessus, .json, .jsonl, .html, .js, .zip, .xlsx, .txt, .sarif, .fpr"},
679679
),
680680
label="Choose report file",
681681
allow_empty_file=True,

dojo/validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def cvss4_validator(value: str | list[str], exception_class: Callable = Validati
102102

103103

104104
class ImporterFileExtensionValidator(FileExtensionValidator):
105-
default_allowed_extensions = ["xml", "csv", "nessus", "json", "jsonl", "html", "js", "zip", "xlsx", "txt", "sarif"]
105+
default_allowed_extensions = ["xml", "csv", "nessus", "json", "jsonl", "html", "js", "zip", "xlsx", "txt", "sarif", "fpr"]
106106

107107
def __init__(self, *args: list, **kwargs: dict):
108108
if "allowed_extensions" not in kwargs:

0 commit comments

Comments
 (0)