Skip to content

Commit

Permalink
Fix security level sanitization.
Browse files Browse the repository at this point in the history
  • Loading branch information
J08nY committed Jun 9, 2024
1 parent b333fd2 commit 703c643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sec_certs/utils/sanitization.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def sanitize_string(record: str) -> str:
def sanitize_security_levels(record: str | set[str]) -> set[str]:
if isinstance(record, str):
record = set(record.split(","))
return record - {"Basic", "ND-PP", "PP\xa0Compliant", "None", "Medium"}
return record - {"Basic", "ND-PP", "PP\xa0Compliant", "None", "Medium", ""}


def sanitize_protection_profiles(record: str) -> list:
Expand Down

0 comments on commit 703c643

Please sign in to comment.