From 703c6438db982022d581c2926ab30f1b112d1567 Mon Sep 17 00:00:00 2001 From: J08nY Date: Sun, 9 Jun 2024 16:59:36 +0200 Subject: [PATCH] Fix security level sanitization. --- src/sec_certs/utils/sanitization.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sec_certs/utils/sanitization.py b/src/sec_certs/utils/sanitization.py index 741fa456..fd477746 100644 --- a/src/sec_certs/utils/sanitization.py +++ b/src/sec_certs/utils/sanitization.py @@ -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: